From 35b5fea038ca76a19b40b40a162affaa9bd6874c Mon Sep 17 00:00:00 2001 From: sebres Date: Thu, 1 Sep 2016 15:44:32 +0200 Subject: [PATCH] backend "systemd" can be used as prefix now - `backend = systemd[...]` --- fail2ban/client/jailreader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fail2ban/client/jailreader.py b/fail2ban/client/jailreader.py index c86c3153..b29d12fa 100644 --- a/fail2ban/client/jailreader.py +++ b/fail2ban/client/jailreader.py @@ -192,7 +192,7 @@ class JailReader(ConfigReader): stream = [] for opt in self.__opts: if opt == "logpath" and \ - self.__opts.get('backend', None) != "systemd": + not self.__opts.get('backend', None).startswith("systemd"): found_files = 0 for path in self.__opts[opt].split("\n"): path = path.rsplit(" ", 1)