From 43e817cebe0c31755aa1c26859bd0573792cfda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20M=C3=BCller?= Date: Tue, 30 Jan 2018 15:10:17 +0100 Subject: [PATCH] Uppercase NO_PROXY takes precedence over no_proxy as in HTTP_PROXY --- xmpp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmpp.go b/xmpp.go index 89e6e6e..d766f39 100644 --- a/xmpp.go +++ b/xmpp.go @@ -93,9 +93,9 @@ func connect(host, user, passwd string) (net.Conn, error) { } // test for no proxy if proxy != "" { - noproxy := os.Getenv("no_proxy") + noproxy := os.Getenv("NO_PROXY") if noproxy == "" { - noproxy = os.Getenv("NO_PROXY") + noproxy = os.Getenv("no_proxy") } if noproxy != "" { nplist := strings.Split(noproxy, ",")