Update manage_iptables

This commit is contained in:
vijay 2025-05-08 02:06:35 +00:00
parent 5ab0121ac3
commit 4d4b2f02aa

View File

@ -82,7 +82,12 @@ remove_from_whitelist() {
while true; do while true; do
show_menu show_menu
read -p "Select an option [1-6]: " option read -p "Select an option [1-6]: " option
option=$(echo "$option" | tr -d '[:space:]') # Trim whitespace
# Check if input is empty
if [[ -z "$option" ]]; then
echo "No option selected. Please try again."
continue
fi
case $option in case $option in
1) 1)