[][src]Function qaul_linux::upnp::check_local

fn check_local(ip: &Ipv4Addr) -> bool

Check if an IP is in one of the local IP ranges

We perform this check to see if an IP address could be one that a gateway can reach. This auto-detection can go wrong though if there are multiple address spaces availabe (for example via a VPN)