diff options
Diffstat (limited to 'caddy.go')
-rw-r--r-- | caddy.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -768,7 +768,7 @@ func IsLoopback(addr string) bool { // be an IP or an IP:port combination. // Loopback addresses are considered false. func IsInternal(addr string) bool { - private_networks := []string{ + privateNetworks := []string{ "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", @@ -786,8 +786,8 @@ func IsInternal(addr string) bool { if ip == nil { return false } - for _, private_network := range private_networks { - _, ipnet, _ := net.ParseCIDR(private_network) + for _, privateNetwork := range privateNetworks { + _, ipnet, _ := net.ParseCIDR(privateNetwork) if ipnet.Contains(ip) { return true } |