Return the interface carrying the IPv4 default route, or None. Used to tell whether this host's internet traffic egresses through a VPN tunnel.
()
| 768 | for i, mac, _ in _neigh_entries(): |
| 769 | if i == ip: |
| 770 | return mac |
| 771 | return None |
| 772 | |
| 773 | |
| 774 | def _arp_baseline_load(): |
| 775 | try: |
| 776 | with open(_ARP_BASELINE_PATH) as f: |
| 777 | d = json.load(f) |
| 778 | return d if isinstance(d, dict) else {} |
| 779 | except (OSError, ValueError): |
no test coverage detected