modified: x-ui.sh

This commit is contained in:
Hai HUANG 2024-02-29 20:50:56 +08:00
parent b98d1ee0e7
commit 5dacac3e12

View file

@ -630,7 +630,9 @@ delete_ports() {
fi
# Delete the specified ports using ufw
IFS=',' read -ra PORT_LIST <<<"$ports"
IFS="," read -r PORT_LIST <<-EOF
$ports
EOF
for port in "${PORT_LIST[@]}"; do
if [[ $port == *-* ]]; then
# Split the range into start and end ports