Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-01-21 04:15:17 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-01-21 04:15:17 +0300
commit4b9bbbc34b3ed5563f9cb14420b768d241580cf3 (patch)
tree10c98817f1477d0e0d4b98a2e1e89d0e3df3bf0a /x-ui.sh
parent820e302aac04312f8353b1bc839e39be70518441 (diff)
clear banned log after unban everyone
Diffstat (limited to 'x-ui.sh')
-rw-r--r--x-ui.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/x-ui.sh b/x-ui.sh
index 20336c18..c7331e6d 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -970,6 +970,7 @@ iplimit_main() {
confirm "Proceed with Unbanning everyone from IP Limit jail?" "y"
if [[ $? == 0 ]]; then
fail2ban-client reload --restart --unban 3x-ipl
+ truncate -s 0 "${iplimit_banned_log_path}"
echo -e "${green}All users Unbanned successfully.${plain}"
iplimit_main
else