diff options
author | sjlleo <[email protected]> | 2021-08-12 15:18:05 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-12 15:18:05 +0800 |
commit | e0cb2c8ba12967e78df15b31dd83c42ecd3d3cee (patch) | |
tree | 6dd1b66d5298e07008fbf62aba299aa6a9090ea0 | |
parent | 6fae84d384e140955f22366dc63253a40bae52aa (diff) | |
parent | 775979bd50d979b36da541ad690415a9416a03dc (diff) |
Merge pull request #11 from goodryb/main
support http proxy
-rw-r--r-- | nf.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -33,6 +33,7 @@ func RequestIP(requrl string, ip string) string { client := &http.Client{ Transport: &http.Transport{ TLSClientConfig: &tls.Config{ServerName: host}, + Proxy: http.ProxyFromEnvironment, }, CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse }, Timeout: 5 * time.Second, |