mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
add: comments about hairy code
This commit is contained in:
parent
94d6333107
commit
b3655f2c60
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user