mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-09-21 22:32:22 +03:00
Services + Traffic-Inspector (LOCAL_ONLY, spawn-capable) returned 403 when the dashboard was reached via the LAN IP (192.168.0.x) instead of loopback. Add isPrivateLanHost (RFC1918 IPv4 + IPv6 ULA/link-local) and widen ONLY the local-only PATH gate to accept private-LAN socket peer IPs — based on the real socket peer address (not the spoofable Host header), so public-internet clients present public IPs and stay blocked. The CLI-token gate stays strictly loopback; paths remain LOCAL_ONLY-classified (Hard Rules 15/17 unchanged). Enforcement-layer carve-out for a LAN-deployed instance, authorized by the operator.