Changes to Config File Logic

This commit is contained in:
Michel Roegl-Brunner 2025-05-12 11:48:31 +02:00
parent fe455a64f6
commit 6ff773dc3d

View File

@ -832,7 +832,7 @@ config_file() {
exit
fi
fi
if [ ! -z "$GATE" ]; then
if [ ! -z "$GATE" ] && [ "$NET" != "dhcp" ]; then
if [[ "$GATE" =~ $ip_regex ]]; then
echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}$GATE${CL}"
GATE=",gw=$GATE"