From da71a0fa01ff57d5912a6c564c6e82840e91766c Mon Sep 17 00:00:00 2001 From: ahmaddxb <43728586+ahmaddxb@users.noreply.github.com> Date: Thu, 17 Jul 2025 23:23:14 +0400 Subject: [PATCH] Update config-file.func (#6042) Fix: Handle GATE variable correctly for DHCP in config file mode This change fixes the bug by adding GATE="" to the validation block for NET="dhcp". --- misc/config-file.func | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/config-file.func b/misc/config-file.func index c7eb5eb87..842c1246c 100644 --- a/misc/config-file.func +++ b/misc/config-file.func @@ -269,6 +269,7 @@ config_file() { if [ "$NET" == "dhcp" ]; then echo -e "${NETWORK}${BOLD}${DGN}IP Address: ${BGN}DHCP${CL}" echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}Default${CL}" + GATE="" elif [[ "$NET" =~ $ip_cidr_regex ]]; then echo -e "${NETWORK}${BOLD}${DGN}IP Address: ${BGN}$NET${CL}" if [ ! -z "$GATE" ]; then