Skip to content

Commit

Permalink
fix: QEMU monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Dec 29, 2023
1 parent 3fc3005 commit 7c80092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -Eeuo pipefail
# Docker environment variables

: ${DHCP:='N'}
: ${HOST_PORTS:=''}
: ${HOST_PORTS:='7100'}
: ${MAC:='02:11:32:AA:BB:CC'}

: ${VM_NET_DEV:=''}
Expand Down Expand Up @@ -145,8 +145,8 @@ configureNAT() {
update-alternatives --set iptables /usr/sbin/iptables-legacy > /dev/null
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy > /dev/null

if [[ -z "$HOST_PORTS" ]] && [[ "${DISPLAY,,}" == "vnc" ]]; then
HOST_PORTS="5900"
if [[ "${DISPLAY,,}" == "vnc" ]] && [[ "$HOST_PORTS" != *"5900"* ]]; then
HOST_PORTS="$HOST_PORTS 5900"
fi

local PORT_ARGS=""
Expand Down

0 comments on commit 7c80092

Please sign in to comment.