mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-16 11:01:26 +00:00
confile: config_network_ipv4_gateway()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
c3760156b8
commit
10da55e4cd
@ -976,7 +976,7 @@ static int config_network_ipv4_gateway(const char *key, const char *value,
|
||||
|
||||
free(netdev->ipv4_gateway);
|
||||
|
||||
if (!value || strlen(value) == 0) {
|
||||
if (config_value_empty(value)) {
|
||||
netdev->ipv4_gateway = NULL;
|
||||
} else if (!strcmp(value, "auto")) {
|
||||
netdev->ipv4_gateway = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user