From 384067fc69a35126f6418ba219cadc925223c9b8 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Tue, 6 Jan 2015 22:38:12 +0100 Subject: Implement proxy functionality as desired Now we support both HTTP and SOCKS5 proxies. While at it, get rid of the outdated usage string and just establish the fact we have a bloody manpage for explanations. --- ratox.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'ratox.c') diff --git a/ratox.c b/ratox.c index cc06c4e..487000a 100644 --- a/ratox.c +++ b/ratox.c @@ -1191,7 +1191,7 @@ toxinit(void) snprintf(toxopt.proxy_address, sizeof(toxopt.proxy_address), "%s", proxyaddr); toxopt.proxy_port = proxyport; - toxopt.proxy_type = 1; + toxopt.proxy_type = proxytype; logmsg("Net > Using proxy %s:%hu\n", proxyaddr, proxyport); } @@ -1943,13 +1943,7 @@ shutdown(void) static void usage(void) { - eprintf("usage: %s [-4|-6] [-E|-e] [-tp] [savefile]\n" - " -4\tIPv4 only\n" - " -6\tIPv6 only\n" - " -E\tEnable save file encryption\n" - " -e\tDisable save file encryption\n" - " -t\tEnable TCP mode (UDP by default)\n" - " -p\tEnable TCP socks5 proxy\n", argv0); + eprintf("usage: %s [-4|-6] [-E|-e] [-T|-t] [-P|-p] [savefile]\n", argv0); } int -- cgit v1.2.3