mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-15 04:50:56 +02:00
chore(settings): use gosettings/sources/env functions
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ func (s *Source) readHTTPProxy() (httpProxy settings.HTTPProxy, err error) {
|
||||
return httpProxy, err
|
||||
}
|
||||
|
||||
httpProxy.Stealth, err = envToBoolPtr("HTTPPROXY_STEALTH")
|
||||
httpProxy.Stealth, err = env.BoolPtr("HTTPPROXY_STEALTH")
|
||||
if err != nil {
|
||||
return httpProxy, fmt.Errorf("environment variable HTTPPROXY_STEALTH: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user