replace
This commit is contained in:
parent
9430bab591
commit
6bbb2e8775
1 changed files with 2 additions and 2 deletions
|
|
@ -253,8 +253,8 @@ fn v6_is_invalid(v6: Ipv6Addr) -> bool {
|
|||
is_documentation
|
||||
|| v6.is_loopback()
|
||||
|| v6.is_multicast()
|
||||
|| v6.is_unique_local()
|
||||
|| v6.is_unicast_link_local()
|
||||
|| (v6.segments()[0] & 0xfe00) == 0xfc00 // is_unique_local
|
||||
|| (v6.segments()[0] & 0xffc0) == 0xfe80 // is_unicast_link_local
|
||||
|| v6.is_unspecified()
|
||||
|| v6.to_ipv4_mapped().is_some_and(v4_is_invalid)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue