fix message to verbose in expr helper (#166)
Co-authored-by: AlteredCoder <AlteredCoder>
This commit is contained in:
parent
895f336900
commit
b7096be6e6
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue