mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
use raw host (don't use textToIp) if usedns not yes or warn
This commit is contained in:
parent
e01cd8ab03
commit
b7787f4af4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue