Skip to content

Commit 44a0d3e

Browse files
authored
fix: support proxy from environment for HTTP client (#109)
1 parent 4d15d6b commit 44a0d3e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/cloud/eksauth/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func NewService(cfg aws.Config) Iface {
3030
// Configure HTTP client with custom timeouts
3131
httpClient := &http.Client{
3232
Transport: &http.Transport{
33+
Proxy: http.ProxyFromEnvironment,
3334
DialContext: (&net.Dialer{
3435
Timeout: 500 * time.Millisecond, // Socket timeout
3536
}).DialContext,

0 commit comments

Comments
 (0)