don't attempt a resolve when the cached answer will do
commitf12aad7f09a608a803b74315213f6f57c97737de
authorRoger Dingledine <arma@torproject.org>
Wed, 16 Nov 2016 21:22:11 +0000 (16 16:22 -0500)
committerRoger Dingledine <arma@torproject.org>
Wed, 16 Nov 2016 21:22:11 +0000 (16 16:22 -0500)
tree929b44a3e17d19f3067a862521167938c228aec2
parent3bb40b213b26467df2604023ae29d915dc740128
don't attempt a resolve when the cached answer will do

For relays that don't know their own address, avoid attempting
a local hostname resolve for each descriptor we download. Also cut
down on the number of "Success: chose address 'x.x.x.x'" log lines.

Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
changes/bug20423 [new file with mode: 0644]
src/or/dirserv.c