From 1804489bf1bdde17aa01dbb88cffb225ce4f9c82 Mon Sep 17 00:00:00 2001 From: Hai HUANG <101720804+maple367@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:36:01 +0800 Subject: [PATCH] modified: x-ui.sh --- x-ui.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x-ui.sh b/x-ui.sh index e4428a4d..0971004f 100644 --- a/x-ui.sh +++ b/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