Changeset 135 in code


Ignore:
Timestamp:
Feb 27, 2021, 8:05:18 AM (4 years ago)
Author:
aurelien
Message:

[fix] do not check a second time for environment variables that have been checked already

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/morty.go

    r134 r135  
    10771077        }
    10781078
    1079         if *proxyenv && (os.Getenv("HTTP_PROXY") != "" || os.Getenv("HTTPS_PROXY") != "") {
     1079        if *proxyenv {
    10801080                CLIENT.Dial = fasthttpproxy.FasthttpProxyHTTPDialer()
    10811081                log.Println("Using environment defined proxy(ies).")
Note: See TracChangeset for help on using the changeset viewer.