diff options
-rw-r--r-- | toxcore/TCP_client.c | 2 | ||||
-rw-r--r-- | toxcore/onion_client.c | 1 |
2 files changed, 2 insertions, 1 deletions
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) | |||
151 | if (ret == -1) | 151 | if (ret == -1) |
152 | return 0; | 152 | return 0; |
153 | 153 | ||
154 | if (data[0] == 5 && data[1] == 0) | 154 | if (data[0] == 5 && data[1] == 0) // FIXME magic numbers |
155 | return 1; | 155 | return 1; |
156 | 156 | ||
157 | return -1; | 157 | 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 | |||
190 | continue; | 190 | continue; |
191 | } | 191 | } |
192 | 192 | ||
193 | // TODO: do we really have to check it with the last node? | ||
193 | if (ipport_equal(&onion_paths->paths[i].ip_port1, &nodes[ONION_PATH_LENGTH - 1].ip_port)) { | 194 | if (ipport_equal(&onion_paths->paths[i].ip_port1, &nodes[ONION_PATH_LENGTH - 1].ip_port)) { |
194 | return i; | 195 | return i; |
195 | } | 196 | } |