aboutsummaryrefslogtreecommitdiff
path: root/src/core
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/core
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/core')
-rw-r--r--src/core/mainloop/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c
index f0ebce9bbb..223428a8f6 100644
--- a/src/core/mainloop/connection.c
+++ b/src/core/mainloop/connection.c
@@ -1516,7 +1516,7 @@ connection_listener_new(const struct sockaddr *listensockaddr,
if (type != CONN_TYPE_AP_LISTENER) {
lis_conn->entry_cfg.ipv4_traffic = 1;
lis_conn->entry_cfg.ipv6_traffic = 1;
- lis_conn->entry_cfg.prefer_ipv6 = 0;
+ lis_conn->entry_cfg.prefer_ipv6 = 1;
}
if (connection_add(conn) < 0) { /* no space, forget it */