mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 05:00:36 +01:00
libnm-core: 0.0.0.0 is a valid gateway too
It makes sense for point-to point links. https://bugzilla.redhat.com/show_bug.cgi?id=1244483
This commit is contained in:
parent
9342568694
commit
f14fd048ff
1 changed files with 1 additions and 1 deletions
|
|
@ -2288,7 +2288,7 @@ set_property (GObject *object, guint prop_id,
|
|||
gateway = g_value_get_string (value);
|
||||
g_return_if_fail (!gateway || nm_utils_ipaddr_valid (NM_SETTING_IP_CONFIG_GET_FAMILY (setting), gateway));
|
||||
g_free (priv->gateway);
|
||||
priv->gateway = canonicalize_ip (NM_SETTING_IP_CONFIG_GET_FAMILY (setting), gateway, TRUE);
|
||||
priv->gateway = canonicalize_ip (NM_SETTING_IP_CONFIG_GET_FAMILY (setting), gateway, gateway == NULL);
|
||||
break;
|
||||
case PROP_ROUTES:
|
||||
g_ptr_array_unref (priv->routes);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue