mirror of https://github.com/fail2ban/fail2ban
small bug fix (missing `-` by option `--timeout`, wrong module reference)
parent
d334a36a60
commit
89f2dbb97b
|
@ -155,8 +155,8 @@ class Fail2banCmdLine():
|
||||||
self._conf["background"] = False
|
self._conf["background"] = False
|
||||||
elif o == "--async":
|
elif o == "--async":
|
||||||
self._conf["async"] = True
|
self._conf["async"] = True
|
||||||
elif o == "-timeout":
|
elif o == "--timeout":
|
||||||
from ..mytime import MyTime
|
from ..server.mytime import MyTime
|
||||||
self._conf["timeout"] = MyTime.str2seconds(opt[1])
|
self._conf["timeout"] = MyTime.str2seconds(opt[1])
|
||||||
elif o in ["-h", "--help"]:
|
elif o in ["-h", "--help"]:
|
||||||
self.dispUsage()
|
self.dispUsage()
|
||||||
|
|
Loading…
Reference in New Issue