Unverified Commit 8b1899c7 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Mimic container IP (#877)

parent 4b500c77
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -413,7 +413,14 @@ configureNAT() {
    fi
  fi

  local ip="172.30.0.2"
  local ip base
  base=$(echo "$IP" | sed -r 's/([^.]*.){2}//')
  if [[ "$IP" != "172.30."* ]]; then
    ip="172.30.$base"
  else
    ip="172.31.$base"
  fi
  
  [ -n "$VM_NET_IP" ] && ip="$VM_NET_IP"

  local gateway=""