summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index cdd33bb6f6..642656fc05 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1380,8 +1380,8 @@ router_compare_to_my_exit_policy(edge_connection_t *conn)
if (tor_addr_is_null(&conn->base_.addr))
return -1;
- /* XXXX IPv6 */
- if (tor_addr_family(&conn->base_.addr) != AF_INET)
+ if (tor_addr_family(&conn->base_.addr) != AF_INET &&
+ tor_addr_family(&conn->base_.addr) != AF_INET6)
return -1;
return compare_tor_addr_to_addr_policy(&conn->base_.addr, conn->base_.port,