std::net::Ipv6Addr::from_str
accepts "::f:f:f:f:f:f:f:f"
but rejects "f:f:f:f:f:f:f:f::"
#46263
Labels
C-bug
Category: This is a bug.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
When all eight segments are present in an IPv6 address specification,
std::net::Ipv6Addr::from_str
allows::
anywhere, except at the very end.Here is a test program:
The output is:
Meta
The text was updated successfully, but these errors were encountered: