mirror of https://github.com/fail2ban/fail2ban
Prevent warning when IP is read from log
parent
635ed36a8c
commit
068c105eb5
|
@ -599,9 +599,9 @@ class DNSUtils:
|
||||||
ip = DNSUtils.dnsToIp(text)
|
ip = DNSUtils.dnsToIp(text)
|
||||||
for e in ip:
|
for e in ip:
|
||||||
ipList.append(e)
|
ipList.append(e)
|
||||||
if useDns == "warn":
|
if useDns == "warn":
|
||||||
logSys.warning("Determined IP using DNS Reverse Lookup: %s = %s",
|
logSys.warning("Determined IP using DNS Reverse Lookup: %s = %s",
|
||||||
text, ipList)
|
text, ipList)
|
||||||
return ipList
|
return ipList
|
||||||
textToIp = staticmethod(textToIp)
|
textToIp = staticmethod(textToIp)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue