mirror of https://github.com/fail2ban/fail2ban
Amend merge for pull request #1454
commit
b85347477f
|
@ -168,7 +168,7 @@ class Filter(JailThread):
|
||||||
if isinstance(value, bool):
|
if isinstance(value, bool):
|
||||||
value = {True: 'yes', False: 'no'}[value]
|
value = {True: 'yes', False: 'no'}[value]
|
||||||
value = value.lower() # must be a string by now
|
value = value.lower() # must be a string by now
|
||||||
if not (value in ('yes', 'no', 'warn')):
|
if not (value in ('yes', 'warn', 'no', 'raw')):
|
||||||
logSys.error("Incorrect value %r specified for usedns. "
|
logSys.error("Incorrect value %r specified for usedns. "
|
||||||
"Using safe 'no'" % (value,))
|
"Using safe 'no'" % (value,))
|
||||||
value = 'no'
|
value = 'no'
|
||||||
|
|
Loading…
Reference in New Issue