fix message to verbose in expr helper (#166)

Co-authored-by: AlteredCoder <AlteredCoder>
This commit is contained in:
AlteredCoder 2020-07-30 17:12:47 +02:00 committed by GitHub
parent 895f336900
commit b7096be6e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,11 +115,11 @@ func IpInRange(ip string, ipRange string) bool {
ipParsed = net.ParseIP(ip)
if ipParsed == nil {
log.Errorf("'%s' is not a valid IP", ip)
log.Debugf("'%s' is not a valid IP", ip)
return false
}
if _, ipRangeParsed, err = net.ParseCIDR(ipRange); err != nil {
log.Errorf("'%s' is not a valid IP Range", ipRange)
log.Debugf("'%s' is not a valid IP Range", ipRange)
return false
}
if ipRangeParsed.Contains(ipParsed) {