vpn-service-plugin: allow VPNs with no IP configuration
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 28 Jan 2016 07:41:36 +0000 (08:41 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Thu, 28 Jan 2016 10:50:15 +0000 (11:50 +0100)
Perfectly fine for ethernet-bridged networks (openvpn with tap devices).

libnm-glib/nm-vpn-plugin.c
libnm/nm-vpn-service-plugin.c

index d180ec4..29d88d1 100644 (file)
@@ -342,8 +342,6 @@ nm_vpn_plugin_set_config (NMVPNPlugin *plugin,
        if (val && g_value_get_boolean (val))
                priv->has_ip6 = TRUE;
 
-       g_warn_if_fail (priv->has_ip4 || priv->has_ip6);
-
        /* Record the items that need to also be inserted into the
         * ip4config, for compatibility with older daemons.
         */
index ae5af32..0de3805 100644 (file)
@@ -315,8 +315,6 @@ nm_vpn_service_plugin_set_config (NMVpnServicePlugin *plugin,
        (void) g_variant_lookup (config, NM_VPN_PLUGIN_CONFIG_HAS_IP4, "b", &priv->has_ip4);
        (void) g_variant_lookup (config, NM_VPN_PLUGIN_CONFIG_HAS_IP6, "b", &priv->has_ip6);
 
-       g_warn_if_fail (priv->has_ip4 || priv->has_ip6);
-
        /* Record the items that need to also be inserted into the
         * ip4config, for compatibility with older daemons.
         */