mirror of https://github.com/fail2ban/fail2ban
use raw host (don't use textToIp) if usedns not yes or warn
parent
e01cd8ab03
commit
b7787f4af4
|
@ -523,7 +523,7 @@ class Filter(JailThread):
|
|||
self.__lineBuffer = failRegex.getUnmatchedTupleLines()
|
||||
try:
|
||||
host = failRegex.getHost()
|
||||
if returnRawHost:
|
||||
if returnRawHost or self.__useDns not in ("yes", "warn"):
|
||||
failList.append([failRegexIndex, host, date,
|
||||
failRegex.getMatchedLines()])
|
||||
if not checkAllRegex:
|
||||
|
|
Loading…
Reference in New Issue