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
a5eeb11f3e
commit
1804489bf1
1 changed files with 3 additions and 1 deletions
4
x-ui.sh
4
x-ui.sh
|
@ -596,7 +596,9 @@ open_ports() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Open the specified ports using ufw
|
# Open 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