feat: Skip gateway check in debugmode

This commit is contained in:
Kroese 2023-11-11 17:43:31 +01:00 committed by GitHub
parent e60cf73a9f
commit 9cef9c9c3b

View file

@ -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