From 86ad51b0adaa465d05ac03614917d88168f39b3c Mon Sep 17 00:00:00 2001 From: Kevin Yue Date: Fri, 29 May 2020 23:44:02 +0800 Subject: [PATCH] Add extra parameters to prelogin request --- GPClient/gatewayauthenticator.cpp | 2 +- GPClient/portalauthenticator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GPClient/gatewayauthenticator.cpp b/GPClient/gatewayauthenticator.cpp index 59aa5c1..404918c 100644 --- a/GPClient/gatewayauthenticator.cpp +++ b/GPClient/gatewayauthenticator.cpp @@ -10,7 +10,7 @@ using namespace gpclient::helper; GatewayAuthenticator::GatewayAuthenticator(const QString& gateway, const PortalConfigResponse& portalConfig) : QObject() - , preloginUrl("https://" + gateway + "/ssl-vpn/prelogin.esp") + , preloginUrl("https://" + gateway + "/ssl-vpn/prelogin.esp?tmp=tmp&kerberos-support=yes&ipv6-support=yes&clientVer=4100&clientos=Linux") , loginUrl("https://" + gateway + "/ssl-vpn/login.esp") , portalConfig(portalConfig) { diff --git a/GPClient/portalauthenticator.cpp b/GPClient/portalauthenticator.cpp index 043f79c..f09ea8e 100644 --- a/GPClient/portalauthenticator.cpp +++ b/GPClient/portalauthenticator.cpp @@ -14,7 +14,7 @@ using namespace gpclient::helper; PortalAuthenticator::PortalAuthenticator(const QString& portal) : QObject() , portal(portal) - , preloginUrl("https://" + portal + "/global-protect/prelogin.esp") + , preloginUrl("https://" + portal + "/global-protect/prelogin.esp?tmp=tmp&kerberos-support=yes&ipv6-support=yes&clientVer=4100&clientos=Linux") , configUrl("https://" + portal + "/global-protect/getconfig.esp") { }