Skip to content

Commit b3655f2

Browse files
author
Roman Proskuryakov
committed
add: comments about hairy code
1 parent 94d6333 commit b3655f2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

toxcore/TCP_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static int socks5_read_handshake_response(TCP_Client_Connection *TCP_conn)
151151
if (ret == -1)
152152
return 0;
153153

154-
if (data[0] == 5 && data[1] == 0)
154+
if (data[0] == 5 && data[1] == 0) // FIXME magic numbers
155155
return 1;
156156

157157
return -1;

toxcore/onion_client.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ static int is_path_used(const Onion_Client_Paths *onion_paths, const Node_format
190190
continue;
191191
}
192192

193+
// TODO: do we really have to check it with the last node?
193194
if (ipport_equal(&onion_paths->paths[i].ip_port1, &nodes[ONION_PATH_LENGTH - 1].ip_port)) {
194195
return i;
195196
}

0 commit comments

Comments
 (0)