aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-01-20 16:17:38 +1000
committerteor <teor@torproject.org>2020-01-20 16:36:58 +1000
commitbf2a399fc0d90df76e091fa3259f7c1b8fb87781 (patch)
treeee56f56cec6f258ed46756ded08f0f6ce53a380a /src/test
parentb23b8fa4a18e7830fcbf95a2621dbc6096d68da5 (diff)
downloadtor-bf2a399fc0d90df76e091fa3259f7c1b8fb87781.tar.gz
tor-bf2a399fc0d90df76e091fa3259f7c1b8fb87781.zip
config: Make clients tell dual-stack exits they prefer IPv6
Make Tor clients tell dual-stack exits that they prefer IPv6 connections. This change is equivalent to setting the PreferIPv6 flag on SOCKSPorts (and most other listener ports). Tor Browser has been setting this flag for some time, and we want to remove a client distinguisher at exits. Also update the man page, putting all the IP flags in their non-default forms. Closes ticket 32637.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c
index c23d04ceb8..8473d80f18 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -4158,6 +4158,8 @@ test_config_parse_port_config__ports__ports_given(void *data)
/* Test entry port defaults as initialised in port_parse_config */
tt_int_op(port_cfg->entry_cfg.dns_request, OP_EQ, 1);
tt_int_op(port_cfg->entry_cfg.ipv4_traffic, OP_EQ, 1);
+ tt_int_op(port_cfg->entry_cfg.ipv6_traffic, OP_EQ, 1);
+ tt_int_op(port_cfg->entry_cfg.prefer_ipv6, OP_EQ, 1);
tt_int_op(port_cfg->entry_cfg.onion_traffic, OP_EQ, 1);
tt_int_op(port_cfg->entry_cfg.cache_ipv4_answers, OP_EQ, 0);
tt_int_op(port_cfg->entry_cfg.prefer_ipv6_virtaddr, OP_EQ, 1);