diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-03 12:44:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-16 09:22:49 -0500 |
commit | f444f2b1d3e045d30cc15e6c1e4d890c40c82b3d (patch) | |
tree | f2ca040147db83d3893b94ffe5fa481175df5f7f /src/or/router.c | |
parent | fc0febc5c62a8c5ad2373b43641a70a8d793a469 (diff) | |
download | tor-f444f2b1d3e045d30cc15e6c1e4d890c40c82b3d.tar.gz tor-f444f2b1d3e045d30cc15e6c1e4d890c40c82b3d.zip |
Split client-specific and server-specific parts of port_cfg_t
Also, apply this cocci script to transform accesses. (Plus manual
migration for accesses inside smartlist_foreach loops.)
@@
port_cfg_t *cfgx;
@@
cfgx->
+server_cfg.
\(
no_advertise
\|
no_listen
\|
all_addrs
\|
bind_ipv4_only
\|
bind_ipv6_only
\)
@@
port_cfg_t *cfgx;
@@
cfgx->
+entry_cfg.
\(
isolation_flags
\|
session_group
\|
socks_prefer_no_auth
\|
ipv4_traffic
\|
ipv6_traffic
\|
prefer_ipv6
\|
cache_ipv4_answers
\|
cache_ipv6_answers
\|
use_cached_ipv4_answers
\|
use_cached_ipv6_answers
\|
prefer_ipv6_virtaddr
\)
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 00c365ffa5..3eb0ea65b8 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1835,8 +1835,8 @@ router_rebuild_descriptor(int force) const port_cfg_t *ipv6_orport = NULL; SMARTLIST_FOREACH_BEGIN(get_configured_ports(), const port_cfg_t *, p) { if (p->type == CONN_TYPE_OR_LISTENER && - ! p->no_advertise && - ! p->bind_ipv4_only && + ! p->server_cfg.no_advertise && + ! p->server_cfg.bind_ipv4_only && tor_addr_family(&p->addr) == AF_INET6) { if (! tor_addr_is_internal(&p->addr, 0)) { ipv6_orport = p; |