summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_core.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-12-18 15:17:26 +0300
committeraunsane <aunsane@gmail.com>2017-12-18 20:37:16 +0300
commit215c3b0f8ba4a6b754936b0ebcbd5cb9a30c7e46 (patch)
tree9c56d4160a2a6e6d09e38eecc6740e15df0ffbc4 /protocols/Tox/src/tox_core.cpp
parent97254a71ba33edf4c829e4c4b0c4961c6348045f (diff)
Tox: added 2 new options
- UDP hole-punching - local network peer discovery
Diffstat (limited to 'protocols/Tox/src/tox_core.cpp')
-rw-r--r--protocols/Tox/src/tox_core.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp
index 735bcd0f3f..de977b090f 100644
--- a/protocols/Tox/src/tox_core.cpp
+++ b/protocols/Tox/src/tox_core.cpp
@@ -10,7 +10,10 @@ Tox_Options* CToxProto::GetToxOptions()
}
options->udp_enabled = getBool("EnableUDP", 1);
+ if (options->udp_enabled && getBool("EnableUDPHolePunching", 1))
+ options->hole_punching_enabled = true;
options->ipv6_enabled = getBool("EnableIPv6", 0);
+ options->local_discovery_enabled = getBool("EnableLocalDiscovery", 0);
if (m_hNetlibUser != nullptr) {
NETLIBUSERSETTINGS nlus = { sizeof(nlus) };