Commit d3403613 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Skip gateway check in debug mode

parent f8f8c162
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -234,8 +234,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