summaryrefslogtreecommitdiffhomepage
path: root/caddy.go
diff options
context:
space:
mode:
authorAaron Ellington <[email protected]>2017-04-29 20:28:18 -0400
committerAaron Ellington <[email protected]>2017-04-29 20:53:58 -0400
commit7ee4ea244f661283c5e97167fdfe7af840dc5c32 (patch)
tree91c45e27f4b7c7d3b14bfff2aa5abed0f4f20430 /caddy.go
parent705cb988653fe322e0bf2408d203f8c99a3e0201 (diff)
downloadcaddy-7ee4ea244f661283c5e97167fdfe7af840dc5c32.tar.gz
caddy-7ee4ea244f661283c5e97167fdfe7af840dc5c32.zip
lint fixes
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
}