mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-09 11:46:18 +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)
|
||||
end_port=$(echo $port | cut -d'-' -f2)
|
||||
# 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
|
||||
i=$((i + 1))
|
||||
done
|
||||
else
|
||||
ufw delete allow "$port"
|
||||
|
|
Loading…
Reference in a new issue