mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
update packaging
This commit is contained in:
@@ -92,17 +92,24 @@ void GPService::quit()
|
||||
|
||||
void GPService::connect(QString server, QString username, QString passwd, QString extraArgs)
|
||||
{
|
||||
log("VPN status is: " + QVariant::fromValue(vpnStatus).toString());
|
||||
|
||||
if (vpnStatus != GPService::VpnNotConnected) {
|
||||
log("VPN status is: " + QVariant::fromValue(vpnStatus).toString());
|
||||
return;
|
||||
}
|
||||
|
||||
QString bin = findBinary();
|
||||
if (bin == nullptr) {
|
||||
log("Could not find openconnect binary, make sure openconnect is installed, exiting.");
|
||||
emit error("The OpenConect CLI was not found, make sure it has been installed!");
|
||||
return;
|
||||
}
|
||||
log("Before findBinary");
|
||||
|
||||
// QString bin = findBinary();
|
||||
|
||||
// log("After findBinary");
|
||||
|
||||
// if (bin == nullptr) {
|
||||
// log("Could not find openconnect binary, make sure openconnect is installed, exiting.");
|
||||
// emit error("The OpenConect CLI was not found, make sure it has been installed!");
|
||||
// return;
|
||||
// }
|
||||
|
||||
QStringList args;
|
||||
args << QCoreApplication::arguments().mid(1)
|
||||
@@ -114,7 +121,7 @@ void GPService::connect(QString server, QString username, QString passwd, QStrin
|
||||
|
||||
log("Start process with arugments: " + args.join(" "));
|
||||
|
||||
openconnect->start(bin, args);
|
||||
openconnect->start("openconnect", args);
|
||||
}
|
||||
|
||||
void GPService::disconnect()
|
||||
|
Reference in New Issue
Block a user