diff --git a/ips/ips.go b/ips/ips.go index 9aa4f5d..b26e411 100644 --- a/ips/ips.go +++ b/ips/ips.go @@ -1,5 +1,7 @@ +// Package ips contains a list of current cloud flare IP ranges package ips +// CFIPs is the CloudFlare Server IP list (this is checked on build). func CFIPs() []string { return []string{ "173.245.48.0/20", diff --git a/main.go b/main.go index 565da86..f40594a 100644 --- a/main.go +++ b/main.go @@ -70,10 +70,10 @@ type Badger struct { } func stringOrDefault(value, def string) string { - if value == "" { - return def + if value != "" { + return value } - return value + return def } type VerifyBody struct {