SocketAddress.toString() and RFC 2732

Chris seahen123 at gmail.com
Fri Jun 7 18:46:50 UTC 2019


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

java.net.SocketAddress can represent an IPv6 address with port.
Because parts of an IPv6 address are separated with colons and a colon
is also used to separate the address from the port, RFC 2732 specifies
that the address be in square brackets in this case, e.g.
"[::1]:8080". Shouldn't that be the behavior of
SocketAddress.toString()? Instead, it omits the square brackets.

Sincerely,
Chris Hennickhttps://github.com/Pr0methean/BetterRandom
-----BEGIN PGP SIGNATURE-----
Version: Mailvelope v3.2.0
Comment: https://www.mailvelope.com

wsFcBAEBCAAGBQJc+rDfAAoJEBeniq5aaEngSpQQAK+vBqnSfFQ9eWLXm7c3
/QGFLRFWP1FkRO70sROMrKunoyahuySPw5DfHqv3xzhwp+6rAs7G0yV4xdhO
KiY8b6YP3/Qbe7x2QSxTDxYAHyvvh99nPcidhMdw71g5yooih4Jseysw1E/4
qrZsMxZEraMVf//8nE5gZsv1gxfqZ49ZOdMPLifGOcHaCcWRYsUfoQp11340
lTgOaOvQjSOnwaQrTMIi33AHu9i8koz8w9sgKGQXqt3Q1zRX2sXGY9mlaCdg
L4RDNu0PqBi8bigrlGaof8ux8u4dlAhg72tfiHBmPUmu9BCxCL27ertpuUFE
o+38pXXjYL97NcpboIsGqWt6z/iqEfIKUb5kIgEMaN5QtN9zKv+6RspocuU+
EYjQ5p4csDjMQpGOpQ6YmXbLbSsQLQbO2jHn5Vp0p+/2E62L3NlDmNL284kE
D6SIPTsGwZ0md09atc6N3l2NhTVujq0SE6qC035JRclnh3P2LT0cgWKWZIuq
toarUoS+WOmEeNxZ2mtRbxJMBD/If7FlwESEyj4AXm/7gDOy5m9s+J+tT0hm
sAutHMJbCiKfJXU7S9Z8FgUerzI6kcexzm6L3o1r9wFi9GDJcHZ3kzQi9KbN
3xIvPY4agy5UbC15XbGQraalPlt7LfLlQl+8TffESWOUUuOCBPYT5TrxZ0pp
cDmW
=8whZ
-----END PGP SIGNATURE-----


More information about the core-libs-dev mailing list