mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 21:00:10 +01: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(cherry picked from commitda2ae8ce4e)
This commit is contained in:
parent
f768f09a86
commit
15e4ee69df
1 changed files with 1 additions and 1 deletions
|
|
@ -933,7 +933,7 @@ apply_parent_device_config (NMVpnConnection *connection)
|
|||
* default route. */
|
||||
if (vpn4_parent_config) {
|
||||
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 (vpn6_parent_config) {
|
||||
nm_ip6_config_merge (vpn6_parent_config, priv->ip6_config, NM_IP_CONFIG_MERGE_DEFAULT);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue