Skip to content

Commit f9439fa

Browse files
author
Pavol Ipoth
committed
Remove loopback check in useProxy func
1 parent ec05fdc commit f9439fa

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

http/httpproxy/proxy.go

+1-9
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,8 @@ func (cfg *config) useProxy(addr string) bool {
174174
if err != nil {
175175
return false
176176
}
177-
if host == "localhost" {
178-
return false
179-
}
180-
ip := net.ParseIP(host)
181-
if ip != nil {
182-
if ip.IsLoopback() {
183-
return false
184-
}
185-
}
186177

178+
ip := net.ParseIP(host)
187179
addr = strings.ToLower(strings.TrimSpace(host))
188180

189181
if ip != nil {

0 commit comments

Comments
 (0)