mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-08-17 17:31:43 +02:00
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:
@ -269,6 +269,7 @@ config_file() {
|
|||||||
if [ "$NET" == "dhcp" ]; then
|
if [ "$NET" == "dhcp" ]; then
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}IP Address: ${BGN}DHCP${CL}"
|
echo -e "${NETWORK}${BOLD}${DGN}IP Address: ${BGN}DHCP${CL}"
|
||||||
echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}Default${CL}"
|
echo -e "${GATEWAY}${BOLD}${DGN}Gateway IP Address: ${BGN}Default${CL}"
|
||||||
|
GATE=""
|
||||||
elif [[ "$NET" =~ $ip_cidr_regex ]]; then
|
elif [[ "$NET" =~ $ip_cidr_regex ]]; then
|
||||||
echo -e "${NETWORK}${BOLD}${DGN}IP Address: ${BGN}$NET${CL}"
|
echo -e "${NETWORK}${BOLD}${DGN}IP Address: ${BGN}$NET${CL}"
|
||||||
if [ ! -z "$GATE" ]; then
|
if [ ! -z "$GATE" ]; then
|
||||||
|
Reference in New Issue
Block a user