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 {