2 ms·
It's a valid address, just not a valid _URL_.
by BenjiWiebe 7mo ago
It's a valid address, just not a valid _URL_.
- tonymet 7mo agoIt’s not even a valid representation of the address (you need brackets )
- vimredo 7mo agoThe brackets are only needed for URLs, scp, and a few other things, due to the fact that ports are specified with colons. Usually you don't see them in a CIDR.
- Hikikomori 7mo agoIt's a valid adress, as a network engineer I've never used brackets.
- tonymet 7mo agoDon’t fib
- Hikikomori 7mo agoNo fibbing. Network devices don't use brackets.
- tonymet 7mo agocurl URL Format curl -6 "[2001:db8::1]:8080/" wget URL Format wget "[2001:db8::1]" ssh Standard Login ssh user@2001:db8::1 ssh Specified Port ssh -p 2222 user@2001:db8::1 scp Remote Path scp file.txt [2001:db8::1]:/tmp/ rsync Remote Path rsync -av file.txt [2001:db8::1]:/tmp/ nc (netcat) Positional nc -6 2001:db8::1 80 telnet Positional telnet 2001:db8::1 80. nmap Target nmap -6 2001:db8::1
- BenjiWiebe 6mo agoThis is kinda arguing semantics, but: The address doesn't use brackets.You include brackets to delineate the address, if the address-containing string could include colons already. So any place that can only take addresses, not some sort of URL, should/can (of course, the program author can do whatever he/she wants!) accept addresses without delineation.
- tonymet 6mo agoList all of the network CLI tools that need brackets or even shell escapes for ipv4 addresses. 90% of HN replies are debating trivialities to attempt to skirt the point. The point is that ipv6 usability is worse. CLI usability is a good example. There are many benefits to ipv6, but let’s at least admit the faults so they can be addressed and encourage further adoption.