[network-manager-openconnect] service: do not fail if an IPv6 address is not given



commit 714dea4eead45e422c11948efd7f54e9d4c74ec6
Author: Mike Miller <mtmiller ieee org>
Date:   Mon Jul 16 09:09:38 2012 -0400

    service: do not fail if an IPv6 address is not given
    
    The helper aborts with failure if INTERNAL_IP6_ADDRESS is not passed in
    from OpenConnect. Some of us are still stuck in the 20th century ;)

 src/nm-openconnect-service-openconnect-helper.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/nm-openconnect-service-openconnect-helper.c b/src/nm-openconnect-service-openconnect-helper.c
index 8ac651f..e421232 100644
--- a/src/nm-openconnect-service-openconnect-helper.c
+++ b/src/nm-openconnect-service-openconnect-helper.c
@@ -588,15 +588,11 @@ main (int argc, char *argv[])
 	val = addr6_to_gvalue (getenv ("INTERNAL_IP6_ADDRESS"));
 	if (val)
 		g_hash_table_insert (ip6config, NM_VPN_PLUGIN_IP6_CONFIG_ADDRESS, val);
-	else
-		helper_failed (connection, "IP6 Address");
 
 	/* IPv6 PTP address; for openconnect PTP address == internal IPv6 address */
 	val = addr6_to_gvalue (getenv ("INTERNAL_IP6_ADDRESS"));
 	if (val)
 		g_hash_table_insert (ip6config, NM_VPN_PLUGIN_IP6_CONFIG_PTP, val);
-	else
-		helper_failed (connection, "IP6 PTP Address");
 
 	/* IPv6 Netmask */
 	tmp = getenv ("INTERNAL_IP6_NETMASK");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]