diff options
author | David Goulet <dgoulet@torproject.org> | 2020-06-24 10:42:00 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-06-24 13:51:37 -0400 |
commit | 29a35d262c4b60535050748df78325c78060c535 (patch) | |
tree | e8c4d10a8e9757f5a74427de874bd99205f0e7c0 /src/feature/dircache/dircache.c | |
parent | 59f5c3d26337ba82be2a7cb2af02ba77e02c1b87 (diff) | |
download | tor-29a35d262c4b60535050748df78325c78060c535.tar.gz tor-29a35d262c4b60535050748df78325c78060c535.zip |
addr: Rename resolved_addr_is_local()
Better function name.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/dircache/dircache.c')
-rw-r--r-- | src/feature/dircache/dircache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/dircache/dircache.c b/src/feature/dircache/dircache.c index 44dc462051..691c100974 100644 --- a/src/feature/dircache/dircache.c +++ b/src/feature/dircache/dircache.c @@ -142,7 +142,7 @@ write_http_response_header_impl(dir_connection_t *conn, ssize_t length, if (type) { buf_add_printf(buf, "Content-Type: %s\r\n", type); } - if (!resolved_addr_is_local(&conn->base_.addr)) { + if (!is_local_to_resolve_addr(&conn->base_.addr)) { /* Don't report the source address for a nearby/private connection. * Otherwise we tend to mis-report in cases where incoming ports are * being forwarded to a Tor server running behind the firewall. */ |