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
@krisprice although I can appreciate that this might be useful in some applications, it will break others if it's done silently in the FromStr impls. There are plenty of places (e.g. most vendor config syntaxes, RPSL) were the abbreviated form is not legal.
I'd suggest a separate constructor for this.
This works:
let net4 = Ipv4Net::from_str("10.1.1.0/24").unwrap();
But this doesn't:
let net4 = Ipv4Net::from_str("10.1.1/24").unwrap();
This abbreviated form of IPv4 CIDR - omitting trailing 0 octets, is fairly common, it would be great if ipnet could accept these.
The text was updated successfully, but these errors were encountered: