mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-20 00:31:17 -08:00
netns.SetEnabled(false) is for processes like userspace-only clients whose traffic never routes back into themselves, so they don't need the namespace setup. But FromDialer also skipped the ALL_PROXY SOCKS wrapping when disabled, so such processes couldn't reach the internet in environments that only allow egress via a proxy, such as ChatGPT Work's sandbox. Only skip the namespace setup when disabled, and still wrap the dialer for the proxy. Updates #22412 Signed-off-by: Brad Fitzpatrick <[email protected]> Change-Id: Ic2023a329c640a1e8de32b157ed608ba385000a1