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:
@@ -40,7 +40,7 @@ QString GPService::findBinary()
|
||||
}
|
||||
|
||||
/* Port from https://github.com/qt/qtbase/blob/11d1dcc6e263c5059f34b44d531c9ccdf7c0b1d6/src/corelib/io/qprocess.cpp#L2115 */
|
||||
QStringList GPService::splitCommand(QStringView command)
|
||||
QStringList GPService::splitCommand(QString command)
|
||||
{
|
||||
QStringList args;
|
||||
QString tmp;
|
||||
@@ -114,6 +114,7 @@ void GPService::connect(QString server, QString username, QString passwd, QStrin
|
||||
QStringList args;
|
||||
args << QCoreApplication::arguments().mid(1)
|
||||
<< "--protocol=gp"
|
||||
<< "-s" << qgetenv("VPNC_SCRIPT")
|
||||
<< splitCommand(extraArgs)
|
||||
<< "-u" << username
|
||||
<< "-C" << passwd
|
||||
|
@@ -3,7 +3,6 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QProcess>
|
||||
#include <QStringView>
|
||||
|
||||
static const QString binaryPaths[] {
|
||||
"/usr/local/bin/openconnect",
|
||||
@@ -55,7 +54,7 @@ private:
|
||||
|
||||
void log(QString msg);
|
||||
static QString findBinary();
|
||||
static QStringList splitCommand(QStringView command);
|
||||
static QStringList splitCommand(QString command);
|
||||
};
|
||||
|
||||
#endif // GLOBALPROTECTSERVICE_H
|
||||
|
Reference in New Issue
Block a user