Skip to content

Commit 68c5876

Browse files
committed
fix
1 parent d9efd45 commit 68c5876

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jail/unprivileged.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,15 @@ func NewUnprivileged(config Config) (*Unprivileged, error) {
3434
func (u *Unprivileged) Start() error {
3535
u.logger.Debug("Starting in unprivileged mode")
3636
e := getEnvs(u.configDir, u.caCertPath)
37+
p := fmt.Sprintf("http://localhost:%d", u.httpProxyPort)
3738
u.commandEnv = mergeEnvs(e, map[string]string{
3839
"HOME": u.homeDir,
3940
"USER": u.username,
4041
"LOGNAME": u.username,
41-
"HTTP_PROXY": fmt.Sprintf("http://localhost:%d", u.httpProxyPort),
42-
"HTTPS_PROXY": fmt.Sprintf("http://localhost:%d", u.httpProxyPort),
42+
"HTTP_PROXY": p,
43+
"HTTPS_PROXY": p,
44+
"http_proxy": p,
45+
"https_proxy": p,
4346
})
4447
return nil
4548
}

0 commit comments

Comments
 (0)