diff options
author | David Goulet <dgoulet@torproject.org> | 2021-02-01 12:20:39 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-02-03 08:54:02 -0500 |
commit | c2cee6c780a1329a6906e91dc6f7854635727691 (patch) | |
tree | 9f7d41171cfc10872d87f5a40b98fd180cf71399 /src/core | |
parent | 98590621bb49cbecd601085f7e03697f8783ff7b (diff) | |
download | tor-c2cee6c780a1329a6906e91dc6f7854635727691.tar.gz tor-c2cee6c780a1329a6906e91dc6f7854635727691.zip |
node: Move reentry set to use a digestmap_t
Any lookup now will be certain and not probabilistic as the bloomfilter.
Closes #40269
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/connection_edge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c index b40fa3e567..4727a0ad66 100644 --- a/src/core/or/connection_edge.c +++ b/src/core/or/connection_edge.c @@ -4062,7 +4062,7 @@ connection_exit_connect(edge_connection_t *edge_conn) * case of an attack so this is a small price to pay. */ if (!connection_edge_is_rendezvous_stream(edge_conn) && !network_reentry_is_allowed() && - nodelist_reentry_probably_contains(&conn->addr, conn->port)) { + nodelist_reentry_contains(&conn->addr, conn->port)) { log_info(LD_EXIT, "%s:%d tried to connect back to a known relay address. " "Closing.", escaped_safe_str_client(conn->address), conn->port); |