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:
Kevin Cernekee
2014-01-01 01:08:17 -08:00
committed by Nikos Mavrogiannopoulos
parent 3697b1c51a
commit c692943289

View File

@@ -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 {