From d12ba90502b29f61ebd1a9848bbd7c74cc830195 Mon Sep 17 00:00:00 2001
From: somebodywashere <68244480+somebodywashere@users.noreply.github.com>
Date: Sun, 18 Jun 2023 19:21:48 +0000
Subject: [PATCH] Changed /var/log/daemon.log to universal parameter
---
x-ui.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/x-ui.sh b/x-ui.sh
index 1e8d7f43..503fdc26 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -746,7 +746,7 @@ install_iplimit() {
touch /var/log/3xipl-banned.log
fi
- echo $'\n[3x-ipl]\nenabled=true\nfilter=3x-ipl\naction=3x-ipl\nlogpath=/var/log/daemon.log\nmaxretry=3\nfindtime=100\nbantime=300' >> /etc/fail2ban/jail.local
+ echo $'\n[3x-ipl]\nenabled=true\nfilter=3x-ipl\naction=3x-ipl\nlogpath=%(syslog_daemon)s\nmaxretry=3\nfindtime=100\nbantime=300' >> /etc/fail2ban/jail.local
echo $'[Definition]\nfailregex = [LIMIT_IP].+Email= .+.+SRC= \nignoreregex =' > /etc/fail2ban/filter.d/3x-ipl.conf