Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit 3802710

Browse files
author
Michael Weber
committed
Add proxy support for plugin (via environment variables)
1 parent d2b25cc commit 3802710

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

conn.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,12 @@ func (config *splunkConfig) newConnection(ctx context.Context) (*splunk.API, err
151151
if err != nil {
152152
return nil, err
153153
}
154+
154155
tr := &http.Transport{
155156
TLSClientConfig: tlsConfig,
157+
Proxy: http.ProxyFromEnvironment,
156158
}
159+
157160
// client is the underlying transport for API calls, including Login (for obtaining session token)
158161
client := &http.Client{
159162
Transport: tr,

0 commit comments

Comments
 (0)