Re: Set IPV6_V6ONLY socket option when -6 switch is used.

Hrvoje Niksic <[email protected]>
Newsgroups gmane.comp.web.wget.patches
Message-ID <[email protected]>
One problem with this patch is that it has a pretty ugly failure mode:

$ wget -6 http://\[::ffff:127.0.0.1\]
--12:53:36--  http://[::ffff:127.0.0.1]/
           => `index.html'
Connecting to ::ffff:127.0.0.1:80... failed: Network is unreachable.
Retrying.
...

And so repeated for 19 more times.  If -t0 were used (which some
people regularly do), Wget would keep busy-looping forever.

Wget considers failure to connect a transient error, which is normally
quite reasonable.  Maybe -6 should just reject mapped IPv4 addresses
after all.  I mean, they're not that hard to detect, are they?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.