fix: Skip gateway check in debug mode

This commit is contained in:
Kroese 2023-10-17 19:37:39 +02:00 committed by GitHub
parent f8f8c16200
commit d340361320

View File

@ -234,7 +234,11 @@ fi
if [[ "${DHCP}" == [Yy1]* ]]; then
if [[ "$GATEWAY" == "172."* ]]; then
error "You can only enable DHCP while the container is on a macvlan network!" && exit 86
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