Skip to content

Commit 3329580

Browse files
committed
Use http:// for HTTPS_PROXY in unprivileged mode
HTTPS_PROXY should use http:// to establish CONNECT tunnels to the proxy, not https://. This is the standard approach for HTTP proxies handling HTTPS traffic via CONNECT. The proxy will still perform TLS termination on the tunneled connections for full request visibility.
1 parent ae7f202 commit 3329580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jail/unprivileged.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func (u *Unprivileged) Start() error {
3939
"USER": u.username,
4040
"LOGNAME": u.username,
4141
"HTTP_PROXY": fmt.Sprintf("http://localhost:%d", u.httpProxyPort),
42-
"HTTPS_PROXY": fmt.Sprintf("https://localhost:%d", u.httpProxyPort),
42+
"HTTPS_PROXY": fmt.Sprintf("http://localhost:%d", u.httpProxyPort),
4343
})
4444
return nil
4545
}

0 commit comments

Comments
 (0)