File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ impl Ipv4Addr {
122
122
123
123
/// Returns true if the address appears to be globally routable.
124
124
/// See [iana-ipv4-special-registry][ipv4-sr].
125
- /// [ipv4-sr]: http://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml
125
+ /// [ipv4-sr]: http://goo.gl/RaZ7lg
126
126
///
127
127
/// The following return false:
128
128
///
@@ -131,10 +131,10 @@ impl Ipv4Addr {
131
131
/// - the link-local address (169.254.0.0/16)
132
132
/// - the broadcast address (255.255.255.255/32)
133
133
/// - test addresses used for documentation (192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24)
134
+ /// - the unspecified address (0.0.0.0)
134
135
pub fn is_global ( & self ) -> bool {
135
136
!self . is_private ( ) && !self . is_loopback ( ) && !self . is_link_local ( ) &&
136
- !self . is_broadcast ( ) && !self . is_documentation ( ) && !self . is_unspecified ( ) &&
137
- !self . is_this_network ( )
137
+ !self . is_broadcast ( ) && !self . is_documentation ( ) && !self . is_unspecified ( )
138
138
}
139
139
140
140
/// Returns true if this is a multicast address.
You can’t perform that action at this time.
0 commit comments