modified: x-ui.sh

This commit is contained in:
Hai HUANG 2024-02-29 20:51:57 +08:00
parent 5dacac3e12
commit 655fc1cd8d

View file

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