feat: Make monitor port configurable

Removed redundant check for empty list in getHostPorts function.
This commit is contained in:
Kroese 2025-10-04 09:34:46 +02:00 committed by GitHub
parent eac3f322f5
commit bd61d63c4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,8 +183,7 @@ getUserPorts() {
getHostPorts() {
local list="$1"
[ -z "$list" ] && echo "" && return 0
[ -z "$list" ] && list="$MON_PORT" || list+=",$MON_PORT"
if [[ "$list" != *","* ]]; then
echo " ! --dport $list"