// IPIsTrusted checks whether an IP address is part of a list of trusted netblocks
IPIsTrusted checks whether an IP address is part of a list of trusted netblocks
// IPIsTrusted checks whether an IP address is part of a list of trusted netblocks
func IPIsTrusted(trusted []net.IPNet, src net.IP) bool {
	if src == nil {
		return false
	}
	for _, netblock := range trusted {
		if netblock.Contains(src) {
			return true
		}
	}
	return false
}
func IPIsTrusted ( trusted [ ] net . IPNet , src net . IP ) bool { if src == nil { return false } for _ , netblock := range trusted { if netblock . Contains ( src ) { return true } } return false }
IPIsTrusted checks whether an IP address is part of a list of trusted netblocks
IPIsTrusted checks whether an IP address is part of a list of trusted netblocks