Commit fff8679d authored by Jan Grulich's avatar Jan Grulich

Openconnect (juniper): Properly make sure we are compatible with the rest of nm tools

parent e52c259c
......@@ -194,8 +194,8 @@ void OpenconnectAuthWidget::readConfig()
}
}
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()));
const QString protocol = dataMap[NM_OPENCONNECT_KEY_PROTOCOL];
openconnect_set_protocol(d->vpninfo, OC3DUP(protocol == "juniper" ? "nc" : protocol.toUtf8().data()));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment