mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-23 04:23:45 -07:00
check also for uppercase NO_PROXY env
This commit is contained in:
committed by
Yasuhiro Matsumoto
parent
2271ce0aec
commit
66aade104d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user