mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 15:00:25 +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.
(cherry picked from commit 19133b08da)
This commit is contained in:
parent
adce577dbc
commit
bea089c35d
1 changed files with 2 additions and 1 deletions
|
|
@ -1080,7 +1080,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