diff options
author | Aaron Ellington <[email protected]> | 2017-04-29 20:28:18 -0400 |
---|---|---|
committer | Aaron Ellington <[email protected]> | 2017-04-29 20:53:58 -0400 |
commit | 7ee4ea244f661283c5e97167fdfe7af840dc5c32 (patch) | |
tree | 91c45e27f4b7c7d3b14bfff2aa5abed0f4f20430 /caddy.go | |
parent | 705cb988653fe322e0bf2408d203f8c99a3e0201 (diff) | |
download | caddy-7ee4ea244f661283c5e97167fdfe7af840dc5c32.tar.gz caddy-7ee4ea244f661283c5e97167fdfe7af840dc5c32.zip |
lint fixes
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 } |