From 92e534bd1656ffbdcf00621f3472cd5dfcd459fe Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Thu, 17 Jan 2019 19:02:02 -0800 Subject: [PATCH] comment about GlobalProtect HTTP user-agent value Signed-off-by: Daniel Lenski --- auth-globalprotect.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.50.1