mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-09 19:56:19 +00:00
modified: x-ui.sh
This commit is contained in:
parent
5dacac3e12
commit
655fc1cd8d
1 changed files with 3 additions and 1 deletions
4
x-ui.sh
4
x-ui.sh
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue