Update network.sh

This commit is contained in:
Kroese 2025-10-14 16:43:21 +02:00 committed by GitHub
parent 138b6638a5
commit 4cac906915
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -204,9 +204,9 @@ getUserPorts() {
list=$(echo "${list// /}" | sed 's/,*$//g')
local ssh="22"
local dsm="5000"
local dsm="5000,5001"
[ -z "$list" ] && list="$ssh,$dsm" || list+=",$ssh,$dsm"
list="${list//,,/,}"
list="${list//,/ }"
list="${list## }"