4 ms·
I'm curious why we need the square brackets.
by tristan957 3y ago
I'm curious why we need the square brackets.
- Dagger2 3y agoURLs use : to separate the IP and port. There needs to be some way to disambiguate that from the colons in the address.
- tristan957 3y agoBut if a URL has more than one colon, can't you assume is an IPv6 address?
- Dagger2 3y agoYou can't tell if there's a port or not, e.g. http://2001:db8::1:8080/ http://2001:db8::1:8080/. Is that 2001:db8::1 or 2001:db8::1:8080?
- patmorgan23 3y agoTo disambiguate between the IP and port numbers