aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/feature/relay/relay_find_addr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/feature/relay/relay_find_addr.c b/src/feature/relay/relay_find_addr.c
index 28b5985bb8..16d0a4733b 100644
--- a/src/feature/relay/relay_find_addr.c
+++ b/src/feature/relay/relay_find_addr.c
@@ -64,8 +64,9 @@ relay_address_new_suggestion(const tor_addr_t *suggested_addr,
tor_assert(peer_addr);
tor_assert(identity_digest);
- /* This should never be called on a non Tor relay. */
- if (BUG(!server_mode(options))) {
+ /* Non server should just ignore this suggestion. Clients don't need to
+ * learn their address let alone cache it. */
+ if (!server_mode(options)) {
return;
}