4 ms·
> but that's similar to how 192.168.0.1 can be written as 192.168.000.001 I would advise you not to do that. Some systems read the numbers with atoi(), which w
by astrobe_ 7y ago
> but that's similar to how 192.168.0.1 can be written as 192.168.000.001
I would advise you not to do that. Some systems read the numbers with atoi(), which will interpret a leading zero as a prefix for 'octal' like in C.
- rswail 7y agowell that won't make a difference for 0.1 :)
- Dagger2 7y agoYup, I was paying attention to that. Note how adding a leading 0 to 192 made it 0300. And people think this is easier than v6, where adding a 0 to db8 just makes it 0db8...?
- PopeDotNinja 7y agoFor example, in Ruby... irb(main):001:0> require 'ipaddr' => true IPAddr.new("000.000.000.000").ipv4? IPAddr::InvalidAddressError (zero-filled number in IPv4 address is ambiguous: 000.000.000.000)