diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-22 00:45:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-22 00:45:08 +0000 |
commit | f0f3bbc63b75860e3218a76602efa3c9b0ec4fae (patch) | |
tree | 4bb740bfaa9df9e9a1d355d9d1261d7f200ae1b2 /src/or/dns.c | |
parent | 78f981dbb05a003dae7b20bc0a4a5ed8134341e4 (diff) | |
download | tor-f0f3bbc63b75860e3218a76602efa3c9b0ec4fae.tar.gz tor-f0f3bbc63b75860e3218a76602efa3c9b0ec4fae.zip |
r8901@Kushana: nickm | 2006-09-21 20:43:48 -0400
I tracked a bug in server-side reverse DNS to something concerning the caching code. Ive disabled server-side cacheing for reverse DNS answers for now, and I am noting the bug in the TODO.
svn:r8454
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index baf89b6559..ff69f56fd0 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -814,6 +814,11 @@ add_answer_to_cache(const char *address, int is_reverse, uint32_t addr, if (outcome == DNS_RESOLVE_FAILED_TRANSIENT) return; + /* XXX This is dumb, but it seems to workaround a bug I can't find. We + * should nail this so we can cache reverse DNS answers. -NM */ + if (is_reverse) + return; + //log_notice(LD_EXIT, "Adding to cache: %s -> %s (%lx, %s), %d", // address, is_reverse?"(reverse)":"", (unsigned long)addr, // hostname?hostname:"NULL",(int)outcome); |