modified: x-ui.sh

This commit is contained in:
Hai HUANG 2024-02-29 20:45:16 +08:00
parent 1804489bf1
commit 3d039ec5da

View file

@ -605,8 +605,10 @@ EOF
start_port=$(echo $port | cut -d'-' -f1)
end_port=$(echo $port | cut -d'-' -f2)
# Loop through the range and open each port
for ((i = start_port; i <= end_port; i++)); do
i=$start_port
while [ $i -le $end_port ]; do
ufw allow $i
i=$((i + 1))
done
else
ufw allow "$port"