[fix] do not check a second time for environment variables that have been checked already

git-svn-id: file:///srv/svn/repo/yukari/trunk@135 f3bd38d9-da89-464d-a02a-eb04e43141b5
This commit is contained in:
aurelien 2021-02-27 08:05:18 +00:00
parent 66cf763b79
commit a92c810197

View File

@ -1076,7 +1076,7 @@ func main() {
os.Exit(1) os.Exit(1)
} }
if *proxyenv && (os.Getenv("HTTP_PROXY") != "" || os.Getenv("HTTPS_PROXY") != "") { if *proxyenv {
CLIENT.Dial = fasthttpproxy.FasthttpProxyHTTPDialer() CLIENT.Dial = fasthttpproxy.FasthttpProxyHTTPDialer()
log.Println("Using environment defined proxy(ies).") log.Println("Using environment defined proxy(ies).")
} else if *proxy != "" { } else if *proxy != "" {