Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX]: Respect HTTP proxy environment variables in downloader #2978

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

kad
Copy link
Contributor

@kad kad commented Oct 24, 2024

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.

Before:

$ gopass update
⚒ Checking for available updates ...

Error: Failed to update gopass: HTTP request failed: context deadline exceeded
$

After:

$ gopass update
⚒ Checking for available updates ...
gopass is up to date (1.15.14)
✅ gopass is up to date
$

`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]>
Copy link
Member

@AnomalRoil AnomalRoil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@dominikschulz dominikschulz merged commit 6ecca43 into gopasspw:master Oct 25, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants