Skip to content

Commit

Permalink
Add Proxy support for Splunk
Browse files Browse the repository at this point in the history
  • Loading branch information
sedkis committed May 3, 2024
1 parent 00b491b commit 0f789ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pumps/splunk.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,10 @@ func NewSplunkClient(token string, collectorURL string, skipVerify bool, certFil
}
tlsConfig = &tls.Config{Certificates: []tls.Certificate{cert}, ServerName: serverName}
}
http.DefaultClient.Transport = &http.Transport{TLSClientConfig: tlsConfig}
http.DefaultClient.Transport = &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: tlsConfig,
}
// Append the default collector API path:
u.Path = defaultPath
c = &SplunkClient{
Expand Down

0 comments on commit 0f789ac

Please sign in to comment.