mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-11 01:06:59 +08:00
Fix auto-update regression on AnyConnect clients
If /1/<OS> exists for every valid OS, then the client will never even try to request /2/binaries/update.txt. Instead, it will request /1/binaries/update.txt, and then get very confused when the response looks like an XML document instead of a version string.
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
3697b1c51a
commit
c692943289
@@ -108,7 +108,7 @@ const char *data;
|
||||
int len;
|
||||
|
||||
oclog(ws, LOG_HTTP_DEBUG, "requested fixed string: %s", ws->req.url);
|
||||
if (!strcmp(ws->req.url, "/2/binaries/update.txt")) {
|
||||
if (!strcmp(ws->req.url, "/1/binaries/update.txt")) {
|
||||
data = VPN_VERSION;
|
||||
len = sizeof(VPN_VERSION)-1;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user