[fix] do not check a second time for environment variables that have been checked already
git-svn-id: file:///srv/svn/repo/yukari/trunk@135 f3bd38d9-da89-464d-a02a-eb04e43141b5
This commit is contained in:
parent
66cf763b79
commit
a92c810197
2
morty.go
2
morty.go
@ -1076,7 +1076,7 @@ func main() {
|
|||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if *proxyenv && (os.Getenv("HTTP_PROXY") != "" || os.Getenv("HTTPS_PROXY") != "") {
|
if *proxyenv {
|
||||||
CLIENT.Dial = fasthttpproxy.FasthttpProxyHTTPDialer()
|
CLIENT.Dial = fasthttpproxy.FasthttpProxyHTTPDialer()
|
||||||
log.Println("Using environment defined proxy(ies).")
|
log.Println("Using environment defined proxy(ies).")
|
||||||
} else if *proxy != "" {
|
} else if *proxy != "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user