dns: fix workaround for systems defaulting to ipv6-only sockets
authorAlexey Izbyshev <izbyshev@ispras.ru>
Fri, 24 Feb 2023 22:07:33 +0000 (01:07 +0300)
committerRich Felker <dalias@aerifal.cx>
Mon, 27 Feb 2023 15:03:56 +0000 (10:03 -0500)
When IPv6 nameservers are present, __res_msend_rc attempts to disable
IPV6_V6ONLY socket option to ensure that it can communicate with IPv4
nameservers (if they are present too) via IPv4-mapped IPv6 addresses.
However, this option can't be disabled on bound sockets, so setsockopt
always fails.


No differences found