Skip to content

Commit 5facae0

Browse files
authored
🚚 release (#55)
2 parents dd6dd12 + ed680d3 commit 5facae0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎diode/client.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,13 @@ func (d *diodeAuthentication) authenticate(logger *slog.Logger, scopes []string)
376376
client := &http.Client{}
377377
if d.isPlaintext {
378378
// HTTP plaintext - no TLS
379-
client.Transport = &http.Transport{}
379+
client.Transport = &http.Transport{
380+
Proxy: http.ProxyFromEnvironment,
381+
}
380382
} else {
381383
// HTTPS - always use TLS for secure schemes
382384
client.Transport = &http.Transport{
385+
Proxy: http.ProxyFromEnvironment,
383386
TLSClientConfig: &tls.Config{
384387
RootCAs: d.rootCAs,
385388
InsecureSkipVerify: !d.tlsVerify, // Skip verification if tlsVerify is false

0 commit comments

Comments
 (0)