mirror of https://github.com/fail2ban/fail2ban
code review
parent
3c70fe298a
commit
fffeb7785c
|
@ -24,7 +24,7 @@ __author__ = "Cyril Jaquier"
|
||||||
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
|
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
|
||||||
__license__ = "GPL"
|
__license__ = "GPL"
|
||||||
|
|
||||||
from .configreader import ConfigReader, NoSectionError
|
from .configreader import ConfigReader
|
||||||
from ..helpers import getLogger, str2LogLevel
|
from ..helpers import getLogger, str2LogLevel
|
||||||
|
|
||||||
# Gets the instance of the logger.
|
# Gets the instance of the logger.
|
||||||
|
@ -63,7 +63,7 @@ class Fail2banReader(ConfigReader):
|
||||||
# thread options:
|
# thread options:
|
||||||
opts = [["int", "stacksize", ],
|
opts = [["int", "stacksize", ],
|
||||||
]
|
]
|
||||||
if ConfigReader.has_section(self, "Thread"):
|
if self.has_section("Thread"):
|
||||||
thopt = ConfigReader.getOptions(self, "Thread", opts)
|
thopt = ConfigReader.getOptions(self, "Thread", opts)
|
||||||
if thopt:
|
if thopt:
|
||||||
self.__opts['thread'] = thopt
|
self.__opts['thread'] = thopt
|
||||||
|
|
Loading…
Reference in New Issue