We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f30a5c commit c6ed85cCopy full SHA for c6ed85c
http/httpproxy/proxy.go
@@ -113,8 +113,8 @@ func getEnvAny(names ...string) string {
113
// environment, or a proxy should not be used for the given request, as
114
// defined by NO_PROXY.
115
//
116
-// As a special case, if req.URL.Host is "localhost" (with or without a
117
-// port number), then a nil URL and nil error will be returned.
+// As a special case, if req.URL.Host is "localhost" or a loopback address
+// (with or without a port number), then a nil URL and nil error will be returned.
118
func (cfg *Config) ProxyFunc() func(reqURL *url.URL) (*url.URL, error) {
119
// Preprocess the Config settings for more efficient evaluation.
120
cfg1 := &config{
0 commit comments