Skip to content

Commit

Permalink
fix: add http env to workers execution
Browse files Browse the repository at this point in the history
yggdrasil adds the proxy as an env variable when starts the worker.

Signed-off-by: Alba Hita Catala <[email protected]>
  • Loading branch information
ahitacat committed Nov 9, 2023
1 parent b75da0d commit 05342a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/yggd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ func main() {
env := []string{
"YGG_SOCKET_ADDR=unix:" + c.String("socket-addr"),
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HTTP_PROXY=" + os.Getenv("HTTP_PROXY"),
"HTTPS_PROXY=" + os.Getenv("HTTPS_PROXY"),
}
for _, info := range fileInfos {
if strings.HasSuffix(info.Name(), "worker") {
Expand Down

0 comments on commit 05342a2

Please sign in to comment.