summaryrefslogtreecommitdiffhomepage
path: root/test/scripts
diff options
context:
space:
mode:
authorMax Zettlmeißl <max@zettlmeissl.de>2024-07-24 12:49:18 +0200
committerMax Zettlmeißl <max@zettlmeissl.de>2024-09-02 19:23:01 +0200
commit3131e11198cc3b0950d752facdb9f54ef86cf8a1 (patch)
treef0e717716833fb20501e7a575d65443796a3b623 /test/scripts
parent74c81eca07f6a88124dea005c52cd9c690e1022b (diff)
downloadmullvadvpn-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