]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Bump fallback GlobalProtect version number
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
Sat, 9 Sep 2023 09:07:03 +0000 (12:07 +0300)
committerDaniel Lenski <dlenski@amazon.com>
Sat, 9 Sep 2023 17:11:12 +0000 (10:11 -0700)
Some GlobalProtect servers complain about old versions of the client
software connecting to them.

In the case of a connection via the GlobalProtect "portal" interface,
we capture the preferred software version from the portal and parrot it back,
as of https://gitlab.com/openconnect/openconnect/-/commit/c0d2daeaa85f69ed2f89330a53d97ae7eafdffb1?merge_request_iid=333.

However, we should update the GlobalProtect software version used as a fallback
in the case of a direct connection to the "gateway" interface.

Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
Signed-off-by: Daniel Lenski <dlenski@amazon.com>
gpst.c

diff --git a/gpst.c b/gpst.c
index 37235c1ffbed281b72a0495ec5c8cdd08567c4a8..ddaef6c42af3f2051ae8058d7e25bf7468ca3b88 100644 (file)
--- a/gpst.c
+++ b/gpst.c
@@ -644,7 +644,7 @@ static int gpst_get_config(struct openconnect_info *vpninfo)
 
        /* submit getconfig request */
        buf_append(request_body, "client-type=1&protocol-version=p1&internal=no");
-       append_opt(request_body, "app-version", vpninfo->csd_ticket ? : "5.1.5-8");
+       append_opt(request_body, "app-version", vpninfo->csd_ticket ? : "6.1.2-82");
        append_opt(request_body, "ipv6-support", vpninfo->disable_ipv6 ? "no" : "yes");
        append_opt(request_body, "clientos", gpst_os_name(vpninfo));
        append_opt(request_body, "os-version", vpninfo->platname);