From 4e1929cad58897cacf5c3cf9b4fc3d8670298d24 Mon Sep 17 00:00:00 2001 From: somebodywashere <68244480+somebodywashere@users.noreply.github.com> Date: Sat, 17 Jun 2023 13:28:39 +0000 Subject: [PATCH] Added confirmation on install Ip Limit --- x-ui.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/x-ui.sh b/x-ui.sh index 29be9264..4b4fee38 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -677,8 +677,14 @@ iplimit_main() { echo -e "${green}\t3.${plain} Check logs" read -p "Choose an option: " choice case "$choice" in - 1) install_iplimit ;; - 2) + 1) + confirm "Proceed?" "y" + if [[ $? == 0 ]]; then + install_iplimit + else + show_menu + fi ;; + 2) read -p "Remove Fail2ban aswell? (Default:n) [y/n]: " temp if [[ "${temp}" == "y" || "${temp}" == "Y" ]]; then sudo systemctl disable fail2ban