vpn-connection: fix unsetting the gateway

Addresses the clash between the two commits which would cause the parent device
gateway to be overwritten with 0.0.0.0 upon route-based VPN activation:

Fixes: 063677101a
Fixes: 1465c1d326
This commit is contained in:
Lubomir Rintel 2015-09-02 19:19:18 +02:00
parent ff434af2c5
commit da2ae8ce4e

View file

@ -921,7 +921,7 @@ apply_parent_device_config (NMVpnConnection *connection)
if (priv->ip4_config) {
vpn4_parent_config = nm_ip4_config_new (ifindex);
nm_ip4_config_merge (vpn4_parent_config, priv->ip4_config, NM_IP_CONFIG_MERGE_DEFAULT);
nm_ip4_config_set_gateway (vpn4_parent_config, 0);
nm_ip4_config_unset_gateway (vpn4_parent_config);
}
if (priv->ip6_config) {
vpn6_parent_config = nm_ip6_config_new (ifindex);