Address __toString formatting
leth opened this issue · 0 comments
leth commented
@essjayhch points out that we are inconsistent in how we format addresses as strings: IPv4 addresses are abbreviated, whereas IPv6 addresses are not.
IPv4 Addresses have two forms, and IPv6 addresses have three:
127.0.0.1
127.000.000.001
::1
0:0:0:0:0:0:0:1
0000:0000:0000:0000:0000:0000:0000:0001
Firstly, we should be consistent in our output.
Secondly, the level of abbreviation should be configurable.