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()
|
self.__lineBuffer = failRegex.getUnmatchedTupleLines()
|
||||||
try:
|
try:
|
||||||
host = failRegex.getHost()
|
host = failRegex.getHost()
|
||||||
if returnRawHost:
|
if returnRawHost or self.__useDns not in ("yes", "warn"):
|
||||||
failList.append([failRegexIndex, host, date,
|
failList.append([failRegexIndex, host, date,
|
||||||
failRegex.getMatchedLines()])
|
failRegex.getMatchedLines()])
|
||||||
if not checkAllRegex:
|
if not checkAllRegex:
|
||||||
|
|
Loading…
Reference in New Issue