mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-07 06:08:02 +02:00
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:063677101aFixes:1465c1d326
This commit is contained in:
parent
ff434af2c5
commit
da2ae8ce4e
1 changed files with 1 additions and 1 deletions
|
|
@ -921,7 +921,7 @@ apply_parent_device_config (NMVpnConnection *connection)
|
||||||
if (priv->ip4_config) {
|
if (priv->ip4_config) {
|
||||||
vpn4_parent_config = nm_ip4_config_new (ifindex);
|
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_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) {
|
if (priv->ip6_config) {
|
||||||
vpn6_parent_config = nm_ip6_config_new (ifindex);
|
vpn6_parent_config = nm_ip6_config_new (ifindex);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue