diff --git a/toxcore/TCP_client.c b/toxcore/TCP_client.c index 1bd11a1d..e2110ad8 100644 --- a/toxcore/TCP_client.c +++ b/toxcore/TCP_client.c @@ -151,7 +151,7 @@ static int socks5_read_handshake_response(TCP_Client_Connection *TCP_conn) if (ret == -1) return 0; - if (data[0] == 5 && data[1] == 0) + if (data[0] == 5 && data[1] == 0) // FIXME magic numbers return 1; return -1; diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index 41efc363..84e74c60 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c @@ -190,6 +190,7 @@ static int is_path_used(const Onion_Client_Paths *onion_paths, const Node_format continue; } + // TODO: do we really have to check it with the last node? if (ipport_equal(&onion_paths->paths[i].ip_port1, &nodes[ONION_PATH_LENGTH - 1].ip_port)) { return i; }