From c3d113a464d4f2e994ae6d1c876875b542f90d5c Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 21 Jul 2020 07:57:21 -0400 Subject: relay: Add AddressDisableIPv6 torrc option This option controls if a tor relay will attempt address auto discovery and thus ultimately publish an IPv6 ORPort in the descriptor. Behavior is from proposal 312 section 3.2.6. Closes #33245 Signed-off-by: David Goulet --- src/test/test_relay.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/test/test_relay.c') diff --git a/src/test/test_relay.c b/src/test/test_relay.c index 60db98aec3..ee704ceb8c 100644 --- a/src/test/test_relay.c +++ b/src/test/test_relay.c @@ -302,6 +302,8 @@ test_find_addr_to_publish(void *arg) (void) arg; + memset(&options, 0, sizeof(options)); + /* Populate our resolved cache with a valid IPv4 and IPv6. */ family = tor_addr_parse(&ipv4_addr, "1.2.3.4"); tt_int_op(family, OP_EQ, AF_INET); -- cgit v1.2.3-54-g00ecf