[PATCH ocserv 4/4] Remove unnecessary AnyConnect /2/* files

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

 



As long as all of our supported OSes are listed under /1/*, the /2/*
files can be omitted.
---
 src/worker-vpn.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/worker-vpn.c b/src/worker-vpn.c
index f939c80..ff48202 100644
--- a/src/worker-vpn.c
+++ b/src/worker-vpn.c
@@ -98,14 +98,6 @@ const static struct known_urls_st known_urls[] = {
 		LL("/", get_auth_handler, post_auth_handler),
 		LL("/auth", get_auth_handler, post_auth_handler),
 #ifdef ANYCONNECT_CLIENT_COMPAT
-		LL("/2/index.html", get_empty_handler, NULL),
-		LL("/2/Linux", get_empty_handler, NULL),
-		LL("/2/Linux_64", get_empty_handler, NULL),
-		LL("/2/Windows", get_empty_handler, NULL),
-		LL("/2/binaries/vpndownloader.sh", get_dl_handler, NULL),
-		LL("/2/VPNManifest.xml", get_string_handler, NULL),
-		LL("/2/binaries/update.txt", get_string_handler, NULL),
-
 		LL("/1/index.html", get_empty_handler, NULL),
 		LL("/1/Linux", get_empty_handler, NULL),
 		LL("/1/Linux_64", get_empty_handler, NULL),
@@ -114,6 +106,7 @@ const static struct known_urls_st known_urls[] = {
 		LL("/1/binaries/vpndownloader.sh", get_dl_handler, NULL),
 		LL("/1/VPNManifest.xml", get_string_handler, NULL),
 		LL("/1/binaries/update.txt", get_string_handler, NULL),
+
 		LL("/profiles", get_config_handler, NULL),
 		LL("/+CSCOT+/translation-table", get_string_handler, NULL),
 #endif
-- 
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