mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 14:40:08 +01:00
libnm-core/vpn-connection: get the service for bus path from plugin
...not from the connection. Otherwise the o.fdo.NM.openswan connection would try to use a name they're not allowed to use.
This commit is contained in:
parent
201d91115c
commit
178c972fac
1 changed files with 4 additions and 1 deletions
|
|
@ -2019,7 +2019,10 @@ nm_vpn_connection_activate (NMVpnConnection *self,
|
|||
s_vpn = nm_connection_get_setting_vpn (_get_applied_connection (self));
|
||||
g_return_if_fail (s_vpn);
|
||||
|
||||
service = nm_setting_vpn_get_service_type (s_vpn);
|
||||
service = nm_vpn_plugin_info_lookup_property (plugin_info,
|
||||
NM_VPN_PLUGIN_INFO_KF_GROUP_CONNECTION,
|
||||
"service");
|
||||
g_return_if_fail (service);
|
||||
|
||||
if (nm_vpn_plugin_info_supports_multiple (plugin_info)) {
|
||||
const char *path;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue