Files
Brad Fitzpatrick 167d05bc82 net/netns: honor ALL_PROXY when netns is disabled
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
2026-11-15 18:14:08 -08:00
..