[PATCH ocserv 2/4] Fix auto-update regression on AnyConnect clients
Kevin Cernekee
cernekee at gmail.com
Wed Jan 1 04:08:17 EST 2014
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.
---
src/worker-extras.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/worker-extras.c b/src/worker-extras.c
index 2d7bec7..0329f5d 100644
--- a/src/worker-extras.c
+++ b/src/worker-extras.c
@@ -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 {
--
1.8.2.1
More information about the openconnect-devel
mailing list