Skip to content

Commit

Permalink
Reincorporated changes from rust-lang#87689
Browse files Browse the repository at this point in the history
  • Loading branch information
chotchki committed Jul 30, 2022
1 parent f299064 commit 3365b06
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions library/std/src/net/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,13 +713,8 @@ impl Ipv4Addr {
|| self.is_shared()
|| self.is_loopback()
|| self.is_link_local()
|| (self.is_ietf_protocol_assignment()
&& !(
// Port Control Protocol Anycast (`192.0.0.9`)
u32::from_be_bytes(self.octets()) == 0xc0000009
// Traversal Using Relays around NAT Anycast (`192.0.0.10`)
|| u32::from_be_bytes(self.octets()) == 0xc000000a
))
// addresses reserved for future protocols (`192.0.0.0/24`)
||(self.octets()[0] == 192 && self.octets()[1] == 0 && self.octets()[2] == 0)
|| self.is_documentation()
|| self.is_benchmarking()
|| self.is_reserved()
Expand Down

0 comments on commit 3365b06

Please sign in to comment.