diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-01-03 15:58:30 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-01-16 09:22:53 -0500 |
commit | 58d17add5e701f8d9b2d3fbe84f0dfd5c9e23c30 (patch) | |
tree | 4c67cadba9469ea234b1832d22c1d5f0ebd25917 /src/or/dnsserv.c | |
parent | f444f2b1d3e045d30cc15e6c1e4d890c40c82b3d (diff) | |
download | tor-58d17add5e701f8d9b2d3fbe84f0dfd5c9e23c30.tar.gz tor-58d17add5e701f8d9b2d3fbe84f0dfd5c9e23c30.zip |
Combine entry_port_cfg_t fields in listener_connection_t
Also, revise the code using these options with this cocci script:
@@
listener_connection_t *conn;
@@
conn->
+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/dnsserv.c')
-rw-r--r-- | src/or/dnsserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index 7b5068199b..d5039f28b4 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -155,8 +155,8 @@ evdns_server_callback(struct evdns_server_request *req, void *data_) entry_conn->socks_request->listener_type = listener->base_.type; entry_conn->dns_server_request = req; - entry_conn->isolation_flags = listener->isolation_flags; - entry_conn->session_group = listener->session_group; + entry_conn->isolation_flags = listener->entry_cfg.isolation_flags; + entry_conn->session_group = listener->entry_cfg.session_group; entry_conn->nym_epoch = get_signewnym_epoch(); if (connection_add(ENTRY_TO_CONN(entry_conn)) < 0) { |