From b3b14bf25db02e98ecd10ba42761a62b42bfae9b Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 26 Dec 2008 22:51:25 +0000 Subject: Add some early checks to keep ipv6 addresses from failing by accident. Now, they fail on purpose, at least till 0.2.2.something. svn:r17791 --- src/or/router.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/or/router.c') diff --git a/src/or/router.c b/src/or/router.c index ec36bdfe91..a3cb7c49e0 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1140,6 +1140,10 @@ 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) + return -1; + return compare_tor_addr_to_addr_policy(&conn->_base.addr, conn->_base.port, desc_routerinfo->exit_policy) != ADDR_POLICY_ACCEPTED; } -- cgit v1.2.3-54-g00ecf