Skip to content

Commit 1db08fd

Browse files
authored
notification-http: Use environment proxy settings (#4364)
Make use of the http_proxy, https_proxy, and no_proxy environment variables (and their uppercase equivalents) when sending http notifications.
1 parent 39f41f9 commit 1db08fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/notification-http/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func getTLSClient(c *PluginConfig) error {
9595
}
9696

9797
transport := &http.Transport{
98+
Proxy: http.ProxyFromEnvironment,
9899
TLSClientConfig: tlsConfig,
99100
}
100101

0 commit comments

Comments
 (0)