mirror of
https://github.com/safing/portmaster.git
synced 2026-05-20 20:40:36 +00:00
2252fd17ed
Add a synchronous HookMgr[T] that lets callers register pre-connect hooks before SPN dials a home hub. The IVPN interop layer subscribes to this hook and uses Linux ip-rule/ip-route to steer SPN hub IPs through a dedicated routing table (717) pointing to the non-VPN default gateway, preventing SPN control traffic from being tunnelled into IVPN. - service/mgr: add generic HookMgr[T] (synchronous, cancellable) - spn/captain: expose HookSPNConnecting; invoke it in connectToHomeHub - service/netenv: add GatewayInfo + GatewaysInfo() with interface/mask - service/interop/ivpn: add ensureSpnHubBypassVpnRoutes managing policy routing; call it from the SPN pre-connect hook and on VPN stop/connect - nfq/packet: add hex comments next to mark constants https://github.com/safing/portmaster-shadow/issues/34