peer: fix ipv6 detection

When trying to detect ipv6 addresses, ipv4 addresses were also
flagged as ipv6.

Add test2413 to check.

Closes #22134
This commit is contained in:
Stefan Eissing 2026-06-22 14:45:25 +02:00 committed by Daniel Stenberg
parent d824266425
commit be1d976a2a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 141 additions and 2 deletions

19
tests/data/test2413 Normal file
View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
unittest
Curl_peer
</keywords>
</info>
# Client-side
<client>
<features>
unittest
</features>
<name>
Curl_peer unit tests
</name>
</client>
</testcase>