forked from jshiffer/go-xmpp
add comments
This commit is contained in:
parent
43e817cebe
commit
7ec2b8b7de
2
xmpp.go
2
xmpp.go
@ -91,7 +91,7 @@ func connect(host, user, passwd string) (net.Conn, error) {
|
|||||||
if proxy == "" {
|
if proxy == "" {
|
||||||
proxy = os.Getenv("http_proxy")
|
proxy = os.Getenv("http_proxy")
|
||||||
}
|
}
|
||||||
// test for no proxy
|
// test for no proxy, takes a comma separated list with substrings to match
|
||||||
if proxy != "" {
|
if proxy != "" {
|
||||||
noproxy := os.Getenv("NO_PROXY")
|
noproxy := os.Getenv("NO_PROXY")
|
||||||
if noproxy == "" {
|
if noproxy == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user