Skip to content

Comments

fix: proxy support from environment for HTTP client#54

Merged
mfiedorowicz merged 1 commit intodevelopfrom
fix-diode-auth-proxy-from-env
Jan 7, 2026
Merged

fix: proxy support from environment for HTTP client#54
mfiedorowicz merged 1 commit intodevelopfrom
fix-diode-auth-proxy-from-env

Conversation

@mfiedorowicz
Copy link
Member

This pull request makes a minor update to the HTTP client transport configuration in diode/client.go. The change ensures that the HTTP client honors proxy settings from the environment for both plaintext and TLS connections.

  • Updated the http.Transport initialization in the authenticate method to set the Proxy field to http.ProxyFromEnvironment, allowing the client to use environment proxy settings for both HTTP and HTTPS connections.

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@github-actions
Copy link

github-actions bot commented Jan 7, 2026

Go test coverage

STATUS ELAPSED PACKAGE COVER PASS FAIL SKIP
🟢 PASS 0.21s github.com/netboxlabs/diode-sdk-go/cmd/diode-replay-dryrun 0.0% 0 0 0
🟢 PASS 1.38s github.com/netboxlabs/diode-sdk-go/diode 20.6% 286 0 0

Total coverage: 76.5%

@mfiedorowicz mfiedorowicz changed the title fix: add proxy support from environment for HTTP client fix: proxy support from environment for HTTP client Jan 7, 2026
@mfiedorowicz mfiedorowicz merged commit ed680d3 into develop Jan 7, 2026
6 checks passed
@mfiedorowicz mfiedorowicz deleted the fix-diode-auth-proxy-from-env branch January 7, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants