Re:Potholes to avoid when migrating to IPv6
by JdeBP on Monday December 31, 2018 @08:31AM
(#18794396)
Indeed, several mechanisms for passing this stuff to programs do exactly that. Notice that they are two distinct command-line arguments to these programs, for examples:
* http://jdebp.eu./Softwares/nosh/guide/tcp-socket-listen.html
* https://cr.yp.to/ucspi-tcp/tcpserver.html
One of the principles underlying this design was, famously, "Don't parse". Don't have one string with a separator character. Have two strings that are already separate.
Re:Potholes to avoid when migrating to IPv6
by zamadatix on Monday December 31, 2018 @08:36AM
(#18794414)
Mostly because of convention that the single identifier be a single string from the user. You might be able to get away with it e.g. in your home grown app but try to land that change in Chrome and you'll get pushback for not being standards compliant.
The explicit way to define a v6 URL was first defined here https://www.ietf.org/rfc/rfc2732.txt and is to use []'s around the address portion.
Address and port as separate values makes more sense to me.