mirror of https://github.com/fail2ban/fail2ban
DOC: Revert change to fail2ban-refex from 183cfa6
parent
183cfa6e00
commit
1756f709da
|
@ -136,7 +136,13 @@ class Fail2banRegex:
|
||||||
elif opt[0] in ["-v", "--verbose"]:
|
elif opt[0] in ["-v", "--verbose"]:
|
||||||
self.__verbose = True
|
self.__verbose = True
|
||||||
elif opt[0] in ["-l", "--maxlines"]:
|
elif opt[0] in ["-l", "--maxlines"]:
|
||||||
self.__filter.setMaxLines(opt[1])
|
try:
|
||||||
|
self.__filter.setMaxLines(int(opt[1]))
|
||||||
|
except ValueError:
|
||||||
|
print "Invlaid value for maxlines: %s" % (
|
||||||
|
opt[1])
|
||||||
|
fail2banRegex.dispUsage()
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
#@staticmethod
|
#@staticmethod
|
||||||
def logIsFile(value):
|
def logIsFile(value):
|
||||||
|
|
Loading…
Reference in New Issue