Commit 9cef9c9c authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Skip gateway check in debugmode

parent e60cf73a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -232,8 +232,12 @@ fi
if [[ "${DHCP}" == [Yy1]* ]]; then

  if [[ "$GATEWAY" == "172."* ]]; then
    if [[ "${DEBUG}" == [Yy1]* ]]; then
      info "Warning: Are you sure the container is on a macvlan network?"
    else
      error "You can only enable DHCP while the container is on a macvlan network!" && exit 86
    fi
  fi

  # Configuration for DHCP IP
  configureDHCP