diff options
| author | Max Zettlmeißl <max@zettlmeissl.de> | 2024-07-24 12:49:18 +0200 |
|---|---|---|
| committer | Max Zettlmeißl <max@zettlmeissl.de> | 2024-09-02 19:23:01 +0200 |
| commit | 3131e11198cc3b0950d752facdb9f54ef86cf8a1 (patch) | |
| tree | f0e717716833fb20501e7a575d65443796a3b623 /test/scripts | |
| parent | 74c81eca07f6a88124dea005c52cd9c690e1022b (diff) | |
| download | mullvadvpn-3131e11198cc3b0950d752facdb9f54ef86cf8a1.tar.xz mullvadvpn-3131e11198cc3b0950d752facdb9f54ef86cf8a1.zip | |
Fix a lingering panic by using a stricter type
The functions `request_ephemeral_peer` and consecutively `new_client`
accepted an `IpAddr`, but due to only ever preparing a v4 socket this
lead to panic due to an `EAFNOSUPPORT` error if an IPv6 was provided.
It would also have made sense to change `new_client` to create either
an IPv4 or IPv6 socket depending on the type of the address, but the
tuncfg service is currently not accepting IPv6 connections, therefore
this was the cleaner change.
Diffstat (limited to 'test/scripts')
0 files changed, 0 insertions, 0 deletions
