]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
comment about GlobalProtect HTTP user-agent value
authorDaniel Lenski <dlenski@gmail.com>
Fri, 18 Jan 2019 03:02:02 +0000 (19:02 -0800)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 9 Jun 2019 23:51:05 +0000 (00:51 +0100)
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
auth-globalprotect.c

index ca9331f92059e2d6e40d58c112faf2a85d309bd9..4d79499523062267e0b3f8391ff71c1e72ccb48c 100644 (file)
@@ -34,10 +34,12 @@ void gpst_common_headers(struct openconnect_info *vpninfo,
                         struct oc_text_buf *buf)
 {
        char *orig_ua = vpninfo->useragent;
-       vpninfo->useragent = (char *)"PAN GlobalProtect";
 
+       /* XX: more recent servers don't appear to require this specific UA value,
+        * but we don't have any good way to detect them.
+        */
+       vpninfo->useragent = (char *)"PAN GlobalProtect";
        http_common_headers(vpninfo, buf);
-
        vpninfo->useragent = orig_ua;
 }