use raw host (don't use textToIp) if usedns exactly `raw`, because `usedns = no` should ignore no ip failures

pull/1454/head
sebres 2016-05-30 15:34:21 +02:00
parent c33e25bab6
commit 8ec4e1189e
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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: