From d8ad3feb40ca3822250d324017b8a05050fec597 Mon Sep 17 00:00:00 2001 From: Hai HUANG <101720804+maple367@users.noreply.github.com> Date: Thu, 29 Feb 2024 21:10:27 +0800 Subject: [PATCH] modified: x-ui.sh --- x-ui.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/x-ui.sh b/x-ui.sh index 463fa868..0bdc828f 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -1015,7 +1015,10 @@ EOF } iplimit_remove_conflicts() { - local jail_files=(/etc/fail2ban/jail.conf /etc/fail2ban/jail.local) + local jail_files[0]=/etc/fail2ban/jail.conf + local jail_files[1]=/etc/fail2ban/jail.local + + for file in "${jail_files[@]}"; do # Check for [3x-ipl] config in jail file then remove it