mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user