diff options
author | Francesco Giudici <fgiudici@redhat.com> | 2016-05-20 17:34:46 +0200 |
---|---|---|
committer | Francesco Giudici <fgiudici@redhat.com> | 2016-05-20 19:53:19 +0200 |
commit | d795e6e925886021bcc0987ef17f1de9eb5c3f63 (patch) | |
tree | 6990a00542a842ae513fb5290bd754460329619e | |
parent | 0209e01eff24316de4169f80cf52e8191b4efeda (diff) | |
download | NetworkManager-fg/vpn_fix_dns_update.tar.gz |
vpn: try to always retrieve the interface for tunnelingfg/vpn_fix_dns_update
also if is not a tun device type
-rw-r--r-- | src/vpn-manager/nm-vpn-connection.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vpn-manager/nm-vpn-connection.c b/src/vpn-manager/nm-vpn-connection.c index c235748741..34e167a1e3 100644 --- a/src/vpn-manager/nm-vpn-connection.c +++ b/src/vpn-manager/nm-vpn-connection.c @@ -1364,6 +1364,10 @@ nm_vpn_connection_ip4_config_get (NMVpnConnection *self, GVariant *dict) NMDevice *parent_dev = nm_active_connection_get_device (NM_ACTIVE_CONNECTION (self)); ifindex = nm_device_get_ip_ifindex (parent_dev); } + + if (!priv->ip_iface) + priv->ip_iface = g_strdup (nm_platform_link_get_name (NM_PLATFORM_GET, ifindex)); + config = nm_ip4_config_new (ifindex); nm_ip4_config_set_dns_priority (config, NM_DNS_PRIORITY_DEFAULT_VPN); |