diff options
author | aunsane <aunsane@gmail.com> | 2017-09-30 18:37:39 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-09-30 18:38:01 +0300 |
commit | d788cb0a769541997b154736ab7682d3f7cbfe8e (patch) | |
tree | 0f5f129a65eaf611f5ab269a5086598f4d47b2db | |
parent | 484b9d594a39d987fcecdd871e2b52b0461ac491 (diff) |
Tox: fixed #953
-rw-r--r-- | protocols/Tox/src/tox_bootstrap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_bootstrap.cpp b/protocols/Tox/src/tox_bootstrap.cpp index 49ae5da94b..6617044e73 100644 --- a/protocols/Tox/src/tox_bootstrap.cpp +++ b/protocols/Tox/src/tox_bootstrap.cpp @@ -111,6 +111,7 @@ void CToxProto::BootstrapNodesFromJson(Tox *tox, bool isIPv6) void CToxProto::BootstrapNodes(Tox *tox) { + UpdateNodes(); debugLogA(__FUNCTION__": bootstraping DHT"); // bool isUdp = getBool("EnableUDP", 1); bool isIPv6 = getBool("EnableIPv6", 0); @@ -120,6 +121,7 @@ void CToxProto::BootstrapNodes(Tox *tox) void CToxProto::UpdateNodes() { + debugLogA(__FUNCTION__": updating nodes"); HttpRequest request(REQUEST_GET, "https://nodes.tox.chat/json"); NLHR_PTR response(request.Send(m_hNetlibUser)); if (!response || response->resultCode != HTTP_CODE_OK || !response->pData) { |