aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app/config/resolve_addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/resolve_addr.c b/src/app/config/resolve_addr.c
index 172f698549..7ec5ae565a 100644
--- a/src/app/config/resolve_addr.c
+++ b/src/app/config/resolve_addr.c
@@ -85,7 +85,7 @@ resolved_addr_get_suggested(int family, tor_addr_t *addr_out)
void
resolved_addr_set_suggested(const tor_addr_t *addr)
{
- if (BUG(tor_addr_family(addr) != AF_INET ||
+ if (BUG(tor_addr_family(addr) != AF_INET &&
tor_addr_family(addr) != AF_INET6)) {
return;
}