add comments

This commit is contained in:
Harald Müller 2018-01-30 15:28:48 +01:00 committed by Yasuhiro Matsumoto
parent 43e817cebe
commit 7ec2b8b7de

View File

@ -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 == "" {