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".
This commit is contained in:
parent
2a359b5d2d
commit
da71a0fa01
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user