summaryrefslogtreecommitdiffhomepage
path: root/caddy.go
diff options
context:
space:
mode:
Diffstat (limited to 'caddy.go')
-rw-r--r--caddy.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/caddy.go b/caddy.go
index 7e07a5dc3..558cfd221 100644
--- a/caddy.go
+++ b/caddy.go
@@ -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
}