Add default port

This commit is contained in:
Kevin Yue 2020-02-20 20:42:51 +08:00
parent 02d78d7607
commit a3a1cf24d6
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ Type=Application
Version=1.0.0
Name=GlobalProtect VPN
Comment=GlobalProtect VPN client, supports SAML auth mode
Exec=env QTWEBENGINE_REMOTE_DEBUGGING=12315 /usr/local/bin/gpclient
Exec=/usr/local/bin/gpclient
Icon=com.yuezk.qt.GPClient
Categories=Network;VPN;Utility;Qt;
Keywords=GlobalProtect;Openconnect;SAML;connection;VPN;

View File

@ -3,6 +3,10 @@
int main(int argc, char *argv[])
{
QString port = QString::fromLocal8Bit(qgetenv(ENV_CDP_PORT));
if (port == "") {
qputenv(ENV_CDP_PORT, "12315");
}
SingleApplication app(argc, argv);
GPClient w;
w.show();