From a92c8101974e9e7609890c8af8b361558295ac08 Mon Sep 17 00:00:00 2001 From: aurelien Date: Sat, 27 Feb 2021 08:05:18 +0000 Subject: [PATCH] [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 --- morty.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morty.go b/morty.go index 8091dd6..4152ff7 100644 --- a/morty.go +++ b/morty.go @@ -1076,7 +1076,7 @@ func main() { os.Exit(1) } - if *proxyenv && (os.Getenv("HTTP_PROXY") != "" || os.Getenv("HTTPS_PROXY") != "") { + if *proxyenv { CLIENT.Dial = fasthttpproxy.FasthttpProxyHTTPDialer() log.Println("Using environment defined proxy(ies).") } else if *proxy != "" {