summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-12-05 17:36:17 +0000
committersin <sin@2f30.org>2014-12-05 17:36:31 +0000
commit2b2409932d41ef170d24c51d44f263fb307f75e6 (patch)
tree414c4d51704b605453d3796e588a75bfcf485723 /ratox.c
parentca2a7226106fe9784b4882b986016ddbede62835 (diff)
Add -E and -e to enable and disable data file encryption
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/ratox.c b/ratox.c
index 25acc9b..54239a4 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1968,12 +1968,13 @@ shutdown(void)
static void
usage(void)
{
- fprintf(stderr, "usage: %s [-4|-6] [-t] [-p]\n"
- " -4\tIPv4 only\n"
- " -6\tIPv6 only\n"
- " -t\tEnable TCP mode (UDP by default)\n"
- " -p\tEnable TCP socks5 proxy\n", argv0);
- exit(1);
+ eprintf("usage: %s [-4|-6] [-E|-e] [-tp]\n"
+ " -4\tIPv4 only\n"
+ " -6\tIPv6 only\n"
+ " -E\tEnable data file encryption\n"
+ " -e\tDisable data file encryption\n"
+ " -t\tEnable TCP mode (UDP by default)\n"
+ " -p\tEnable TCP socks5 proxy\n", argv0);
}
int
@@ -1985,6 +1986,12 @@ main(int argc, char *argv[])
case '6':
ipv6 = 1;
break;
+ case 'E':
+ encryptdatafile = 1;
+ break;
+ case 'e':
+ encryptdatafile = 0;
+ break;
case 't':
tcpflag = 1;
break;