Skip to content

Commit 304ee6b

Browse files
blink-so[bot]f0ssel
andcommitted
Add lowercase proxy environment variables for compatibility
- Set both HTTP_PROXY/http_proxy and HTTPS_PROXY/https_proxy - Ensures curl and other tools properly use the proxy - Now properly blocks traffic as expected in unprivileged mode Co-authored-by: f0ssel <[email protected]>
1 parent 8b0b51e commit 304ee6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

namespace/unprivileged.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ func (u *Unprivileged) Start() error {
3434
u.commandEnv = mergeEnvs(e, map[string]string{
3535
"HTTP_PROXY": fmt.Sprintf("http://127.0.0.1:%d", u.httpProxyPort),
3636
"HTTPS_PROXY": fmt.Sprintf("https://127.0.0.1:%d", u.httpsProxyPort),
37+
"http_proxy": fmt.Sprintf("http://127.0.0.1:%d", u.httpProxyPort),
38+
"https_proxy": fmt.Sprintf("https://127.0.0.1:%d", u.httpsProxyPort),
3739
})
3840
return nil
3941
}

0 commit comments

Comments
 (0)