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 exactly raw, because usedns = no should ignore no ip failures
This commit is contained in:
parent
c33e25bab6
commit
8ec4e1189e
2 changed files with 2 additions and 1 deletions
|
|
@ -94,6 +94,7 @@ backend = auto
|
|||
# but it will be logged as a warning.
|
||||
# no: if a hostname is encountered, will not be used for banning,
|
||||
# but it will be logged as info.
|
||||
# raw: use raw value (no hostname), allow use it for no-host filters/actions (example user)
|
||||
usedns = warn
|
||||
|
||||
# "logencoding" specifies the encoding of the log files handled by the jail
|
||||
|
|
|
|||
|
|
@ -523,7 +523,7 @@ class Filter(JailThread):
|
|||
self.__lineBuffer = failRegex.getUnmatchedTupleLines()
|
||||
try:
|
||||
host = failRegex.getHost()
|
||||
if returnRawHost or self.__useDns not in ("yes", "warn"):
|
||||
if returnRawHost or self.__useDns == "raw":
|
||||
failList.append([failRegexIndex, host, date,
|
||||
failRegex.getMatchedLines()])
|
||||
if not checkAllRegex:
|
||||
|
|
|
|||
Loading…
Reference in a new issue