mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-03-02 06:47:23 +08:00
feat: Make monitor port configurable
Removed redundant check for empty list in getHostPorts function.
This commit is contained in:
parent
eac3f322f5
commit
bd61d63c4f
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user