fix: Automaticly set controlport
This commit is contained in:
parent
899a9cf6c4
commit
12335bd743
1 changed files with 4 additions and 0 deletions
|
@ -148,6 +148,10 @@ configureNAT () {
|
||||||
|
|
||||||
ip link set dev "${VM_NET_TAP}" master dockerbridge
|
ip link set dev "${VM_NET_TAP}" master dockerbridge
|
||||||
|
|
||||||
|
if [[ -z "${CONTROL_PORTS}" ]] && [[ "${DISPLAY,,}" == "vnc" ]]; then
|
||||||
|
CONTROL_PORTS='5900'
|
||||||
|
fi
|
||||||
|
|
||||||
CONTROL_PORT_ARGS=''
|
CONTROL_PORT_ARGS=''
|
||||||
for PORT in $CONTROL_PORTS ; do
|
for PORT in $CONTROL_PORTS ; do
|
||||||
CONTROL_PORT_ARGS="$CONTROL_PORT_ARGS ! --dport $PORT"
|
CONTROL_PORT_ARGS="$CONTROL_PORT_ARGS ! --dport $PORT"
|
||||||
|
|
Loading…
Reference in a new issue