mirror of https://github.com/fail2ban/fail2ban
Merge pull request #558 from grooverdan/jailreader-logpath-head-default
BF: default for logpath is head. "false" is not validpull/546/merge
commit
c5a5f9da76
|
@ -153,7 +153,7 @@ class JailReader(ConfigReader):
|
|||
found_files = 0
|
||||
for path in self.__opts[opt].split("\n"):
|
||||
path = path.rsplit(" ", 1)
|
||||
path, tail = path if len(path) > 1 else (path[0], "false")
|
||||
path, tail = path if len(path) > 1 else (path[0], "head")
|
||||
pathList = JailReader._glob(path)
|
||||
if len(pathList) == 0:
|
||||
logSys.error("No file(s) found for glob %s" % path)
|
||||
|
|
Loading…
Reference in New Issue