summaryrefslogtreecommitdiff
path: root/src/or/addressmap.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-03 16:11:23 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-16 09:22:58 -0500
commit13dac5e463e183695e6579fb8bdd4747db50cf6e (patch)
tree198e9c45ae6753d691110dcdb00da75503f72dd1 /src/or/addressmap.c
parent58d17add5e701f8d9b2d3fbe84f0dfd5c9e23c30 (diff)
downloadtor-13dac5e463e183695e6579fb8bdd4747db50cf6e.tar.gz
tor-13dac5e463e183695e6579fb8bdd4747db50cf6e.zip
Move entry_port_cfg_t fields in entry_connection_t
Also rename some options for uniformity, and apply this script: @@ entry_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/addressmap.c')
-rw-r--r--src/or/addressmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/addressmap.c b/src/or/addressmap.c
index 08f7075407..5e37a2621e 100644
--- a/src/or/addressmap.c
+++ b/src/or/addressmap.c
@@ -670,10 +670,10 @@ client_dns_set_addressmap(entry_connection_t *for_conn,
return; /* If address was an IP address already, don't add a mapping. */
if (tor_addr_family(val) == AF_INET) {
- if (! for_conn->cache_ipv4_answers)
+ if (! for_conn->entry_cfg.cache_ipv4_answers)
return;
} else if (tor_addr_family(val) == AF_INET6) {
- if (! for_conn->cache_ipv6_answers)
+ if (! for_conn->entry_cfg.cache_ipv6_answers)
return;
}
@@ -702,8 +702,8 @@ client_dns_set_reverse_addressmap(entry_connection_t *for_conn,
{
tor_addr_t tmp_addr;
sa_family_t f = tor_addr_parse(&tmp_addr, address);
- if ((f == AF_INET && ! for_conn->cache_ipv4_answers) ||
- (f == AF_INET6 && ! for_conn->cache_ipv6_answers))
+ if ((f == AF_INET && ! for_conn->entry_cfg.cache_ipv4_answers) ||
+ (f == AF_INET6 && ! for_conn->entry_cfg.cache_ipv6_answers))
return;
}
tor_asprintf(&s, "REVERSE[%s]", address);