summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-23 13:40:46 +0100
committersin <sin@2f30.org>2014-09-23 13:40:46 +0100
commitfc256a293089082871342430d7e699a5a26c0379 (patch)
treef8bb3b42c1ea7ae486f702dcef1191230664d573 /ratox.c
parentab8e59fcb9749f90207c959fffd3e3263b520019 (diff)
We need to force TCP mode when using the proxy
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index 6c85e14..d50b8bc 100644
--- a/ratox.c
+++ b/ratox.c
@@ -761,6 +761,9 @@ toxinit(void)
toxopt.ipv6enabled = ipv6;
toxopt.udp_disabled = tcpflag;
if (proxyflag == 1) {
+ tcpflag = 1;
+ toxopt.udp_disabled = tcpflag;
+ printout("Forcing TCP mode\n");
snprintf(toxopt.proxy_address, sizeof(toxopt.proxy_address),
"%s", proxyaddr);
toxopt.proxy_port = proxyport;