diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 7e28db2..d53befc 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -937,6 +937,7 @@ static int get_config (GHashTable *options, GHashTable *secrets,
char *hostname;
char *group;
char *csd;
+ char *juniper;
char *sslkey, *cert;
char *csd_wrapper;
char *pem_passphrase_fsid;
@@ -1000,6 +1001,11 @@ static int get_config (GHashTable *options, GHashTable *secrets,
openconnect_setup_csd(vpninfo, getuid(), 1, OC3DUP (csd_wrapper));
}
+ juniper = g_hash_table_lookup (options, NM_OPENCONNECT_KEY_JUNIPER_MODE);
+ if (juniper && strcmp(juniper, "yes") == 0) {
+ openconnect_set_protocol(vpninfo, "nc");
+ }
+
proxy = g_hash_table_lookup (options, NM_OPENCONNECT_KEY_PROXY);
if (proxy && proxy[0] && openconnect_set_http_proxy(vpninfo, OC3DUP (proxy)))
return -EINVAL;
diff --git a/properties/nm-openconnect-dialog.ui b/properties/nm-openconnect-dialog.ui
index 4643b73..1a6baa5 100644
--- a/properties/nm-openconnect-dialog.ui
+++ b/properties/nm-openconnect-dialog.ui
@@ -263,6 +263,26 @@
+
+
+ 0
+ False
+ False
+
+
+