MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _vpn_provider_match

Function _vpn_provider_match

network_diagnostics.py:793–797  ·  view source on GitHub ↗

Return the matched VPN-provider hint if any egress field looks like a VPN provider/hosting ASN, else None.

(*fields)

Source from the content-addressed store, hash-verified

791
792
793def do_arp_baseline(action='get'):
794 """Manage the trusted gateway IP->MAC baseline the spoof check compares
795 against. action='reset' clears it so the current binding is re-learned on
796 the next check (use after a legitimate router/gateway change)."""
797 with _arp_baseline_lock:
798 if action == 'reset':
799 _arp_baseline_save({})
800 return {'success': True, 'reset': True, 'gateways': {}}

Callers 1

_isp_lookup_ifaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected