diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-23 14:24:04 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-06-23 17:36:37 +0000 |
commit | ca75c014a41c2d207f705f49a9e0ce696dc0f0a7 (patch) | |
tree | 412596b5cea76b7f1f06dc3c7f457d5b09fa6a96 /toxcore/tox.api.h | |
parent | 64d115e52d3e506c360f221b67893ce41423716e (diff) |
Disable UDP when proxy is enabled.
Currently, toxcore does not support UDP over proxies. In the future, we
can relax this by disabling UDP only if the proxy doesn't support it.
Diffstat (limited to 'toxcore/tox.api.h')
-rw-r--r-- | toxcore/tox.api.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h index 1c3b1121..241441b8 100644 --- a/toxcore/tox.api.h +++ b/toxcore/tox.api.h | |||
@@ -473,7 +473,9 @@ static class options { | |||
473 | * | 473 | * |
474 | * Setting this to false will force Tox to use TCP only. Communications will | 474 | * Setting this to false will force Tox to use TCP only. Communications will |
475 | * need to be relayed through a TCP relay node, potentially slowing them down. | 475 | * need to be relayed through a TCP relay node, potentially slowing them down. |
476 | * Disabling UDP support is necessary when using anonymous proxies or Tor. | 476 | * |
477 | * If a proxy is enabled, UDP will be disabled if either toxcore or the | ||
478 | * proxy don't support proxying UDP messages. | ||
477 | */ | 479 | */ |
478 | bool udp_enabled; | 480 | bool udp_enabled; |
479 | 481 | ||