diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-07 12:05:27 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-07 12:58:41 -0400 |
commit | 66d5292ee6a173b21e5a54a669e8e584c6781e3a (patch) | |
tree | 940c723a30a39bc61df4bdf4e4dce9141c9c4e3a /src/test/test_config.c | |
parent | d4c79cae76536673184ffd4f6116bcd07fd0b1f5 (diff) | |
download | tor-66d5292ee6a173b21e5a54a669e8e584c6781e3a.tar.gz tor-66d5292ee6a173b21e5a54a669e8e584c6781e3a.zip |
Revert "config: Make clients tell dual-stack exits they prefer IPv6"
This reverts commit bf2a399fc0d90df76e091fa3259f7c1b8fb87781.
Don't set by default the prefer IPv6 feature on client ports because it breaks
the torsocks use case. The SOCKS resolve command is lacking a mechanism to ask
for a specific address family (v4 or v6) thus prioritizing IPv6 when an IPv4
address is asked on the resolve SOCKS interface resulting in a failure.
Tor Browser explicitly set PreferIPv6 so this should not affect the majority
of our users.
Closes #33796
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r-- | src/test/test_config.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 095eb24c49..cb0d9bba28 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -4160,8 +4160,6 @@ 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); |