Skip to content

Commit

Permalink
Remove loopback check in useProxy func
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavol Ipoth committed Apr 9, 2024
1 parent ec05fdc commit cd8cd55
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions http/httpproxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,8 @@ func (cfg *config) useProxy(addr string) bool {
if err != nil {
return false
}
if host == "localhost" {
return false
}
ip := net.ParseIP(host)
if ip != nil {
if ip.IsLoopback() {
return false
}
}

ip := net.ParseIP(host)
addr = strings.ToLower(strings.TrimSpace(host))

if ip != nil {
Expand Down

0 comments on commit cd8cd55

Please sign in to comment.