]> git.ipfire.org Git - thirdparty/curl.git/commit
socks4: scan for the IPv4 address in resolve results
authorDaniel Stenberg <daniel@haxx.se>
Mon, 5 Jul 2021 11:28:26 +0000 (13:28 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Jul 2021 20:38:13 +0000 (22:38 +0200)
commitcffbccd0960a580fb955dd5b8ee2eb9138e40e8f
tree134d349e813bca45be6266e62bcb794817bb681a
parent2b311d369d8164e810541fb7c92658326f98b364
socks4: scan for the IPv4 address in resolve results

Follow-up to 84d2839740 which changed the resolving to always resolve
both address families, but since SOCKS4 only supports IPv4 it should
scan for and use the first available IPv4 address.

Reported-by: shithappens2016 on github
Fixes #7345
Closes #7346
lib/socks.c