mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-30 14:56:17 +00:00
Added confirmation on install Ip Limit
This commit is contained in:
parent
7d28dea2fb
commit
4e1929cad5
1 changed files with 8 additions and 2 deletions
8
x-ui.sh
8
x-ui.sh
|
@ -677,7 +677,13 @@ iplimit_main() {
|
||||||
echo -e "${green}\t3.${plain} Check logs"
|
echo -e "${green}\t3.${plain} Check logs"
|
||||||
read -p "Choose an option: " choice
|
read -p "Choose an option: " choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
1) install_iplimit ;;
|
1)
|
||||||
|
confirm "Proceed?" "y"
|
||||||
|
if [[ $? == 0 ]]; then
|
||||||
|
install_iplimit
|
||||||
|
else
|
||||||
|
show_menu
|
||||||
|
fi ;;
|
||||||
2)
|
2)
|
||||||
read -p "Remove Fail2ban aswell? (Default:n) [y/n]: " temp
|
read -p "Remove Fail2ban aswell? (Default:n) [y/n]: " temp
|
||||||
if [[ "${temp}" == "y" || "${temp}" == "Y" ]]; then
|
if [[ "${temp}" == "y" || "${temp}" == "Y" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue