diff options
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index c03dfcea..b3c665b7 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -174,6 +174,11 @@ static int client_add_to_list(Onion_Client *onion_c, uint32_t num, uint8_t *publ | |||
174 | if (num == 0) { | 174 | if (num == 0) { |
175 | list_nodes = onion_c->clients_announce_list; | 175 | list_nodes = onion_c->clients_announce_list; |
176 | reference_id = onion_c->dht->c->self_public_key; | 176 | reference_id = onion_c->dht->c->self_public_key; |
177 | |||
178 | if (is_stored && memcmp(pingid_or_key, onion_c->temp_public_key, crypto_box_PUBLICKEYBYTES) != 0) { | ||
179 | is_stored = 0; | ||
180 | } | ||
181 | |||
177 | } else { | 182 | } else { |
178 | list_nodes = onion_c->friends_list[num - 1].clients_list; | 183 | list_nodes = onion_c->friends_list[num - 1].clients_list; |
179 | reference_id = onion_c->friends_list[num - 1].real_client_id; | 184 | reference_id = onion_c->friends_list[num - 1].real_client_id; |