forked from jshiffer/go-xmpp
check also for uppercase NO_PROXY env
This commit is contained in:
parent
2271ce0aec
commit
66aade104d
3
xmpp.go
3
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user