Added confirmation on install Ip Limit

This commit is contained in:
somebodywashere 2023-06-17 13:28:39 +00:00
parent 7d28dea2fb
commit 4e1929cad5

10
x-ui.sh
View file

@ -677,8 +677,14 @@ 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)
2) confirm "Proceed?" "y"
if [[ $? == 0 ]]; then
install_iplimit
else
show_menu
fi ;;
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
sudo systemctl disable fail2ban sudo systemctl disable fail2ban