From 605cdc45bd73c5c403637fd8e82e41e18901b22a Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 22 May 2024 13:52:57 +0200 Subject: [PATCH] Update network.sh --- src/network.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/network.sh b/src/network.sh index ceb688b..43eb542 100644 --- a/src/network.sh +++ b/src/network.sh @@ -328,8 +328,8 @@ if [[ "$DHCP" == [Yy1]* ]]; then ! checkOS && [[ "$DEBUG" != [Yy1]* ]] && exit 19 - if [[ "$GATEWAY" == "172."* ]]; then - warn "your gateway IP starts with 172.* which is often a sign that you are not on a macvlan network (required for DHCP)!" + if [[ "$IP" == "172."* ]]; then + warn "your IP starts with 172.* which is often a sign that you are not on a macvlan network (required for DHCP)!" fi # Configuration for DHCP IP @@ -337,7 +337,7 @@ if [[ "$DHCP" == [Yy1]* ]]; then else - if [[ "$GATEWAY" != "172."* ]] && [[ "$GATEWAY" != "10.8"* ]] && [[ "$GATEWAY" != "10.9"* ]]; then + if [[ "$IP" != "172."* ]] && [[ "$IP" != "10.8"* ]] && [[ "$IP" != "10.9"* ]]; then ! checkOS && [[ "$DEBUG" != [Yy1]* ]] && exit 19 fi