summaryrefslogtreecommitdiff
path: root/toxcore/onion_client.c
diff options
context:
space:
mode:
authorRoman Proskuryakov <humbug@deeptown.org>2016-01-23 03:51:11 +0300
committerRoman Proskuryakov <humbug@deeptown.org>2016-01-27 02:14:59 +0300
commitb3655f2c60694fd08f55d9f5663ae1370d178e25 (patch)
tree8e1dfc181b0ae279abef6f3061c079f41629ff10 /toxcore/onion_client.c
parent94d6333107dc245f669dfbee171544984b47bb6a (diff)
add: comments about hairy code
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r--toxcore/onion_client.c1
1 files changed, 1 insertions, 0 deletions
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 }