modified: x-ui.sh

This commit is contained in:
Hai HUANG 2024-02-29 20:36:01 +08:00
parent a5eeb11f3e
commit 1804489bf1

View file

@ -596,7 +596,9 @@ open_ports() {
fi fi
# Open the specified ports using ufw # Open 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 for port in "${PORT_LIST[@]}"; do
if [[ $port == *-* ]]; then if [[ $port == *-* ]]; then
# Split the range into start and end ports # Split the range into start and end ports