Unverified Commit 6158372e authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Remove nat option (#1068)

parent b1a778d7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ configureDNS() {
  rm -f "$log"

  case "${NETWORK,,}" in
    "nat" | "tap" | "tun" | "tuntap" | "y" )
    "tap" | "tun" | "tuntap" | "y" )

      # Create lease file for faster resolve
      echo "0 $mac $ip $host 01:$mac" > /var/lib/misc/dnsmasq.leases
@@ -786,7 +786,7 @@ else

  case "${NETWORK,,}" in
    "user"* | "passt" | "slirp" ) ;;
    "nat" | "tap" | "tun" | "tuntap" | "y" )
    "tap" | "tun" | "tuntap" | "y" )

      # Configure tap interface
      if ! configureNAT; then
@@ -803,7 +803,7 @@ else
  [[ "${NETWORK,,}" == "user"* ]] && NETWORK="passt"

  case "${NETWORK,,}" in
    "nat" | "tap" | "tun" | "tuntap" | "y" ) ;;
    "tap" | "tun" | "tuntap" | "y" ) ;;
    "passt" )

      # Configure for user-mode networking (passt)