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
b98d1ee0e7
commit
5dacac3e12
1 changed files with 3 additions and 1 deletions
4
x-ui.sh
4
x-ui.sh
|
@ -630,7 +630,9 @@ delete_ports() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Delete the specified ports using ufw
|
# Delete 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
|
||||||
|
|
Loading…
Reference in a new issue