pub fn is_lan(ip: IpAddr) -> boolExpand description
Whether ip is on the local network: loopback, an RFC 1918 private or link-local IPv4
address, or an IPv6 unique-local (fc00::/7) or link-local (fe80::/10) address, including
an IPv4-mapped one of those. Peering dials and admits only these, so a peering channel never
leaves the LAN.