From 5dacac3e124baae005fb27394ae9aa5ce85d9485 Mon Sep 17 00:00:00 2001 From: Hai HUANG <101720804+maple367@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:50:56 +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 e3ed8df1..782fa011 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -630,7 +630,9 @@ delete_ports() { fi # 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 if [[ $port == *-* ]]; then # Split the range into start and end ports