Skip to content

Commit 1436e61

Browse files
authored
allow safechroot to run behind proxy (#78)
Signed-off-by: Chee Yang Lee <chee.yang.lee@intel.com>
1 parent 7008c2e commit 1436e61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

toolkit/tools/internal/safechroot/safechroot.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ var defaultChrootEnv = []string{
9999
"HOME=/root",
100100
fmt.Sprintf("SHELL=%s", os.Getenv("SHELL")),
101101
fmt.Sprintf("TERM=%s", os.Getenv("TERM")),
102+
fmt.Sprintf("https_proxy=%s", os.Getenv("https_proxy")),
103+
fmt.Sprintf("no_proxy=%s", os.Getenv("no_proxy")),
102104
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
103105
}
104106

0 commit comments

Comments
 (0)