[bug #65007] wget uses non-standard way to print IPv6 addresses

Tim Ruehsen <[email protected]> Sun, 10 Dec 2023 06:11:19 -0500 (EST)
Newsgroups gmane.comp.web.wget.general
Message-ID <[email protected]>
Follow-up Comment #1, bug#65007 (group wget):

I get your point.

The output line has the same format for IPv6 and IPv4 where the IP address
representation and the port number are printed as two fields separated by
`|:`.

E.g. for an IPv4 address, the string is also not as "usually done":


Connecting to example.com (example.com)|93.184.216.34|:443... connected.


I hesitate to change this because the format exists since a long time and we
can be sure that changing it will break many scripts.

Rather, I'd like to modernize this in wget2. I see that in wget2 the output is
also not quite correct in the debug logs. Currently it is
`2a02:6ea0:c700::11:443` and it should be `[2a02:6ea0:c700::11]:443`.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65007>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/