From 66aade104d13ffcb6df96be309e45872473430c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harald=20M=C3=BCller?= Date: Wed, 15 Nov 2017 13:00:48 +0100 Subject: [PATCH] check also for uppercase NO_PROXY env --- xmpp.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmpp.go b/xmpp.go index 64aed6f..89e6e6e 100644 --- a/xmpp.go +++ b/xmpp.go @@ -94,6 +94,9 @@ func connect(host, user, passwd string) (net.Conn, error) { // test for no proxy if proxy != "" { noproxy := os.Getenv("no_proxy") + if noproxy == "" { + noproxy = os.Getenv("NO_PROXY") + } if noproxy != "" { nplist := strings.Split(noproxy, ",") for _, s := range nplist {