Update manage_iptables
This commit is contained in:
parent
5ab0121ac3
commit
4d4b2f02aa
@ -82,7 +82,12 @@ remove_from_whitelist() {
|
||||
while true; do
|
||||
show_menu
|
||||
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
|
||||
1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user