diff options
-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) { |