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

feat: Use passt for rtl8139 adapter (#885)

parent 0d70fbe9
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -338,8 +338,6 @@ configurePasst() {
  PASST_OPTS+=" -a $ip"
  PASST_OPTS+=" -g $gateway"
  PASST_OPTS+=" -n $VM_NET_MASK"

  [[ "${ADAPTER,,}" == "rtl8139" ]] && [ -z "$PASST_MTU" ] && PASST_MTU="$MTU"  
  [ -n "$PASST_MTU" ] && PASST_OPTS+=" -m $PASST_MTU"

  exclude=$(getHostPorts "$HOST_PORTS")
@@ -800,13 +798,7 @@ else

  esac

  if [[ "${NETWORK,,}" == "user"* ]]; then
    if [[ "${ADAPTER,,}" != "rtl8139" ]]; then
      NETWORK="passt"
    else
      NETWORK="slirp"
    fi
  fi
  [[ "${NETWORK,,}" == "user"* ]] && NETWORK="passt"

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