ssb: No duplicate connections, even with tunnels. This is confusing.

This commit is contained in:
Cory McWilliams 2024-10-14 12:44:21 -04:00
parent 29a1478c86
commit 30329f7cad

View File

@ -3367,11 +3367,6 @@ tf_ssb_connection_t* tf_ssb_connection_get(tf_ssb_t* ssb, const char* id)
tf_ssb_id_str_to_bin(pub, id); tf_ssb_id_str_to_bin(pub, id);
for (tf_ssb_connection_t* connection = ssb->connections; connection; connection = connection->next) for (tf_ssb_connection_t* connection = ssb->connections; connection; connection = connection->next)
{ {
if (connection->tunnel_connection)
{
continue;
}
if (memcmp(connection->serverpub, pub, k_id_bin_len) == 0) if (memcmp(connection->serverpub, pub, k_id_bin_len) == 0)
{ {
return connection; return connection;