summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2017-01-23 13:22:11 -0500
committerDavid Goulet <dgoulet@torproject.org>2017-01-27 09:12:32 -0500
commite1337b42525c03890e1dd3b7448eb33eae321e30 (patch)
tree0b8a92290715bc07863447f9b63f1572be738b13 /src/or
parent8bd3c1b74df450d2bf4d1069c975c8babe5b770e (diff)
downloadtor-e1337b42525c03890e1dd3b7448eb33eae321e30.tar.gz
tor-e1337b42525c03890e1dd3b7448eb33eae321e30.zip
client: set IPv6Traffic to on by default
See: https://trac.torproject.org/projects/tor/ticket/21269 https://bugs.debian.org/851798 Closes #21269 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index d0ca561e1f..1ea8712379 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -6246,6 +6246,7 @@ port_cfg_new(size_t namelen)
tor_assert(namelen <= SIZE_T_CEILING - sizeof(port_cfg_t) - 1);
port_cfg_t *cfg = tor_malloc_zero(sizeof(port_cfg_t) + namelen + 1);
cfg->entry_cfg.ipv4_traffic = 1;
+ cfg->entry_cfg.ipv6_traffic = 1;
cfg->entry_cfg.dns_request = 1;
cfg->entry_cfg.onion_traffic = 1;
cfg->entry_cfg.cache_ipv4_answers = 1;
@@ -6599,7 +6600,7 @@ parse_port_config(smartlist_t *out,
/* This must be kept in sync with port_cfg_new's defaults */
int no_listen = 0, no_advertise = 0, all_addrs = 0,
bind_ipv4_only = 0, bind_ipv6_only = 0,
- ipv4_traffic = 1, ipv6_traffic = 0, prefer_ipv6 = 0, dns_request = 1,
+ ipv4_traffic = 1, ipv6_traffic = 1, prefer_ipv6 = 0, dns_request = 1,
onion_traffic = 1,
cache_ipv4 = 1, use_cached_ipv4 = 0,
cache_ipv6 = 0, use_cached_ipv6 = 0,