Skip to content

Commit

Permalink
fix: Skip gateway check in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed Oct 17, 2023
1 parent 4e49562 commit ffbaa7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run/network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffbaa7c

Please sign in to comment.