diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-24 15:21:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-24 15:21:25 +0300 |
commit | aa55162ab85df5aa0ac6b87711bfee222b3222dd (patch) | |
tree | 779192c1e27f86650aa8721396f73ea79aa6a627 /protocols/Tox/src/tox_bootstrap.cpp | |
parent | 055ca90f5d22a5211150ae8158dcec7fe1befb11 (diff) |
warning fix
Diffstat (limited to 'protocols/Tox/src/tox_bootstrap.cpp')
-rw-r--r-- | protocols/Tox/src/tox_bootstrap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_bootstrap.cpp b/protocols/Tox/src/tox_bootstrap.cpp index cc0801da32..50ff219ab0 100644 --- a/protocols/Tox/src/tox_bootstrap.cpp +++ b/protocols/Tox/src/tox_bootstrap.cpp @@ -107,9 +107,9 @@ void CToxProto::BootstrapNodesFromJson(Tox *tox, bool isIPv6) if (node.at("status_tcp").as_bool()) { JSONNode tcpPorts = node.at("tcp_ports").as_array(); - for (size_t i = 0; i < tcpPorts.size(); i++) + for (size_t k = 0; k < tcpPorts.size(); k++) { - int port = tcpPorts[i].as_int(); + int port = tcpPorts[k].as_int(); BootstrapTcpRelay(tox, address.as_string().c_str(), port, pubKey.as_string().c_str()); if (isIPv6) { |