Skip to content

Commit

Permalink
[BUGFIX]: Respect HTTP proxy environment variables in downloader (#2978)
Browse files Browse the repository at this point in the history
`gopass update` fails on the hosts behind HTTP proxies and without direct
Internet connectivity. Fix is setting up proxy from environment variables
similarly to default golang HTTP client.

Signed-off-by: Alexander D. Kanevskiy <[email protected]>
  • Loading branch information
kad authored Oct 25, 2024
1 parent 45043c9 commit 6ecca43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/updater/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var (
// enforce TLS 1.3
MinVersion: tls.VersionTLS13,
},
Proxy: http.ProxyFromEnvironment,
},
}
)
Expand Down

0 comments on commit 6ecca43

Please sign in to comment.