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 ec05fdc commit 2d3c203Copy full SHA for 2d3c203
http/httpproxy/proxy.go
@@ -174,16 +174,8 @@ func (cfg *config) useProxy(addr string) bool {
174
if err != nil {
175
return false
176
}
177
- if host == "localhost" {
178
- return false
179
- }
180
- ip := net.ParseIP(host)
181
- if ip != nil {
182
- if ip.IsLoopback() {
183
184
185
186
+ ip := net.ParseIP(host)
187
addr = strings.ToLower(strings.TrimSpace(host))
188
189
if ip != nil {
0 commit comments