From d3403613203f0568c0703f80faa481d0dac6161e Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 17 Oct 2023 19:37:39 +0200 Subject: [PATCH] fix: Skip gateway check in debug mode --- run/network.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/run/network.sh b/run/network.sh index f3dced9..3f1799d 100644 --- a/run/network.sh +++ b/run/network.sh @@ -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