Unverified Commit 2dad9d9c authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Configure ports for Slirp networking (#906)

parent 10023c2c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -251,7 +251,7 @@ getSlirp() {
  local args=""
  local list=""

  list=$(getUserPorts)
  list=$(getUserPorts "${USER_PORTS:-}")
  list="${list//,/ }"
  list="${list## }"
  list="${list%% }"
@@ -296,7 +296,7 @@ configureSlirp() {
  NET_OPTS="-netdev user,id=hostnet0,ipv4=on,host=$gateway,net=${gateway%.*}.0/24,dhcpstart=$ip,${ipv6}hostname=$VM_NET_HOST"

  local forward=""
  forward=$(getUserPorts "${USER_PORTS:-}")
  forward=$(getSlirp)
  [ -n "$forward" ] && NET_OPTS+=",$forward"

  if [[ "${DNSMASQ_DISABLE:-}" != [Yy1]* ]]; then