From: Daniel Lenski Date: Fri, 18 Jan 2019 03:02:02 +0000 (-0800) Subject: comment about GlobalProtect HTTP user-agent value X-Git-Tag: v8.04~42 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=92e534bd1656ffbdcf00621f3472cd5dfcd459fe;p=users%2Fdwmw2%2Fopenconnect.git comment about GlobalProtect HTTP user-agent value Signed-off-by: Daniel Lenski --- diff --git a/auth-globalprotect.c b/auth-globalprotect.c index ca9331f9..4d794995 100644 --- a/auth-globalprotect.c +++ b/auth-globalprotect.c @@ -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; }