a bit faster local address check, check loopback first