mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-20 05:52:24 +00:00
Fix x-ui.sh bug #778
This commit is contained in:
parent
65e35c1711
commit
8050330e2e
1 changed files with 1 additions and 1 deletions
2
x-ui.sh
2
x-ui.sh
|
@ -788,7 +788,7 @@ iplimit_main() {
|
||||||
2)
|
2)
|
||||||
read -rp "Please enter new Ban Duration in Minutes [default 5]: " NUM
|
read -rp "Please enter new Ban Duration in Minutes [default 5]: " NUM
|
||||||
if [[ $NUM =~ ^[0-9]+$ ]]; then
|
if [[ $NUM =~ ^[0-9]+$ ]]; then
|
||||||
create_iplimit_jail ${NUM}
|
create_iplimit_jails ${NUM}
|
||||||
systemctl restart fail2ban
|
systemctl restart fail2ban
|
||||||
else
|
else
|
||||||
echo -e "${red}${NUM} is not a number! Please, try again.${plain}"
|
echo -e "${red}${NUM} is not a number! Please, try again.${plain}"
|
||||||
|
|
Loading…
Reference in a new issue