[PATCH ocserv 2/4] Fix auto-update regression on AnyConnect clients

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux