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
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
|
||||
|
||||
# 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
|
||||
if [[ $port == *-* ]]; then
|
||||
# Split the range into start and end ports
|
||||
|
|
Loading…
Reference in a new issue