You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is explicitly stated not to be supported in the docs:
Ipv4Addr provides a FromStr implementation. The four octets are in decimal notation, divided by . (this is called "dot-decimal notation"). Notably, octal numbers (which are indicated with a leading 0) and hexadecimal numbers (which are indicated with a leading 0x) are not allowed per IETF RFC 6943.
I tried this code:
I expected to see this happen: OK
Instead, this happened: It panicked and failed.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=278845b668106e1318e431ba7c81eb47
IP addresses can contain different representations in every chunk, the IP address is completely valid. For eg. running
ping
on it, is completely fine.The text was updated successfully, but these errors were encountered: