Skip to content

Commit

Permalink
Update util.go
Browse files Browse the repository at this point in the history
  • Loading branch information
uditgaurav authored Aug 29, 2022
1 parent fbb00d4 commit c914539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom/dns_interceptor/server/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ func updateResolvConf(resolvConfPath string, originalData *string) (string, erro

func checkValidUpstream(server string) bool {
serverIp := net.ParseIP(server)
return !serverIp.IsLoopback() && !net.IPv4zero.Equal(serverIp) && !net.IPv6zero.Equal(serverIp)
return !net.IPv4zero.Equal(serverIp) && !net.IPv6zero.Equal(serverIp)
}

0 comments on commit c914539

Please sign in to comment.