summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Whyman <[email protected]>2016-12-05 10:00:47 +0100
committerJan Grulich <[email protected]>2016-12-05 10:00:47 +0100
commite12f39760596efc697f84aa486c260cb5825914e (patch)
treef23e45b320f02af5b895edb8bd865122820d590d
parentc156d251ec06ecef74b6cba00980289b8eb587bf (diff)
Pass protocol type to openconnect
BUG:363917
-rw-r--r--vpn/openconnect/openconnectauth.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/vpn/openconnect/openconnectauth.cpp b/vpn/openconnect/openconnectauth.cpp
index def53c7..1c0a83a 100644
--- a/vpn/openconnect/openconnectauth.cpp
+++ b/vpn/openconnect/openconnectauth.cpp
@@ -193,6 +193,10 @@ void OpenconnectAuthWidget::readConfig()
openconnect_passphrase_from_fsid(d->vpninfo);
}
}
+ if (!dataMap[NM_OPENCONNECT_KEY_PROTOCOL].isEmpty()) {
+ const QString protocol = dataMap[NM_OPENCONNECT_KEY_PROTOCOL] == "juniper" ? "nc" : "anyconnect";
+ openconnect_set_protocol(d->vpninfo, OC3DUP(protocol.toUtf8().data()));
+ }
}
void OpenconnectAuthWidget::readSecrets()