Leading zeros in IPvAddress toString

Hello,
it says in the comment above toString in IPv4Address, that it’s supposed to return a.b.c.d where a-d are numbers from 0 to 255 without leading zeros. Does that mean that for the input “001.002.003.004” it should return “1.2.3.4” ?

Thank You!

1 Like

Yes, IPv4 addresses are normalized.

2 Likes