From 215c3b0f8ba4a6b754936b0ebcbd5cb9a30c7e46 Mon Sep 17 00:00:00 2001 From: aunsane Date: Mon, 18 Dec 2017 15:17:26 +0300 Subject: Tox: added 2 new options - UDP hole-punching - local network peer discovery --- protocols/Tox/src/tox_core.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols/Tox/src/tox_core.cpp') 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) }; -- cgit v1.2.3