Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong printing of IPv6 addresses #534
FWIW: nserv prints out a wrong IPv6 address (after a connection timeout): the right two sets ("hextets") are left out, "::" prepended on the left. Example:
Source IPv6 address is
Listening on IPv6
with client connection
FWIW: it's daemon/connect/Connection.cpp line 413 that does the printing.
Listening on IPv4 gives the correct IP address
Listening on IPv6 (and iPv4), and connecting to 127.0.0.1, prints
Hmmm ... 127.0.0.1 (4 bytes) missing. 8 hex digits are also 4 bytes ... in general / hypothesis: the last 4 bytes are not printed?
Connecting to fe80::d0e6:4f78:4332:44ba gives
So, new hypothesis:
And as we know: in an IPv6 address, one sequence of :0000:'s can be replaced with "::", explaining the "::2001:aaaa:ff00:0:11a1:28f5": the 0000:0000: on the left side are replaced with :: .
That works! Thank you!
Tested with git version:
and still working for IPv4.