summaryrefslogtreecommitdiff
path: root/src/usage.c
diff options
context:
space:
mode:
authorJoshua Judson Rosen2015-02-17 00:37:08 -0500
committerJoshua Judson Rosen2015-02-17 00:37:08 -0500
commit714aebccbd7a4ab6ec0964d4580efd49171ba140 (patch)
treee71ac66a95848b1c0e8f47ea7d3df0e54c052d48 /src/usage.c
parentNix mysleep(). (diff)
downloadapf-714aebccbd7a4ab6ec0964d4580efd49171ba140.tar.gz
Remove HTTP proxy support.
There are plenty of popular, readily-available external tools that, frankly, provide better options for going through proxies-- both of the HTTP variety and others (corkscrew, httptunnel, socat...); and dropping our internal implementation results in a significant reduction in code complexity--including the complete elimination of multithreading and all of the worries that go along with it.
Diffstat (limited to 'src/usage.c')
-rw-r--r--src/usage.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/usage.c b/src/usage.c
index 08a85b8..e32f6f8 100644
--- a/src/usage.c
+++ b/src/usage.c
@@ -110,15 +110,7 @@ server_long_usage(char* info)
printf(" -4, --ipv4 - use ipv4 only\n");
printf(" -6, --ipv6 - use ipv6 only\n\n");
#endif
-#ifdef HAVE_LIBPTHREAD
- printf(" HTTP PROXY:\n\n");
- printf(" -P, --enableproxy - enable http proxy mode\n\n");
- /* FIXME: afclient is always trying to get http page, so this option is not needed now
- printf(" -S, --use-https - use https proxy instead of http proxy. '-P' option\n");
- printf(" will be set implicitly\n\n");
- */
-#endif
-
+
exit(0);
}
@@ -213,15 +205,6 @@ client_long_usage(char* info)
printf(" -l, --load - load a module for user's packets filtering\n");
printf(" -L, --Load - load a module for service's packets filtering\n\n");
#endif
-#ifdef HAVE_LIBPTHREAD
- printf(" HTTP/HTTPS PROXY:\n\n");
- printf(" -S, --use-https - use https proxy instead of http proxy\n");
- printf(" -P, --proxyname - the name of the machine with proxy server\n");
- printf(" -X, --proxyport - the port used by proxy server (default: 8080)\n");
- printf(" -C, --pa-cred U:P - the user (U) and password (P) used in proxy\n");
- printf(" authorization\n");
- printf(" -B, --pa-t-basic - the Basic type of proxy authorization (default)\n\n");
-#endif
-
+
exit(0);
}