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

fix: Detect host mode networking (#855)

parent 19a48315
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -403,7 +403,7 @@ getInfo() {

  NIC=$(ethtool -i "$VM_NET_DEV" | grep -m 1 -i 'driver:' | awk '{print $(2)}')

  if [[ "${NIC,,}" != "veth" ]]; then
  if [[ "${NIC,,}" != "veth" && "${NIC,,}" != "macvlan" ]]; then
    [[ "$DEBUG" == [Yy1]* ]] && info "Detected NIC: $NIC"
    error "This container does not support host mode networking!" && exit 29
  fi