mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 17:40:14 +01:00
vpn: dispatch pre-up scripts only once
If the plugin sends a new configuration when the connection is already activated the state should not go back to PRE_UP since this causes dispatcher scripts to run again.
This commit is contained in:
parent
fdecb6b669
commit
19133b08da
1 changed files with 2 additions and 1 deletions
|
|
@ -1082,7 +1082,8 @@ nm_vpn_connection_apply_config (NMVpnConnection *self)
|
|||
nm_default_route_manager_ip6_update_default_route (priv->default_route_manager, self);
|
||||
|
||||
_LOGI ("VPN connection: (IP Config Get) complete");
|
||||
_set_vpn_state (self, STATE_PRE_UP, NM_VPN_CONNECTION_STATE_REASON_NONE, FALSE);
|
||||
if (priv->vpn_state < STATE_PRE_UP)
|
||||
_set_vpn_state (self, STATE_PRE_UP, NM_VPN_CONNECTION_STATE_REASON_NONE, FALSE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue