diff options
author | warms0x <warms0x@riseup.net> | 2011-10-07 07:04:29 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-10-07 12:18:26 -0400 |
commit | 6d027a3823843030fc24d7224da3ca976f121b01 (patch) | |
tree | 803e8d76fc64985d83457f1e4a9cda992039f653 /src | |
parent | 103c861dfead6640a4bef6e85f740f7c635c7343 (diff) | |
download | tor-6d027a3823843030fc24d7224da3ca976f121b01.tar.gz tor-6d027a3823843030fc24d7224da3ca976f121b01.zip |
Avoid running DNS self-tests if we're operating as a bridge
Diffstat (limited to 'src')
-rw-r--r-- | src/or/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c index 289d805503..95acea4f51 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -1241,7 +1241,7 @@ run_scheduled_events(time_t now) /** 9. and if we're a server, check whether our DNS is telling stories to * us. */ - if (is_server && time_to_check_for_correct_dns < now) { + if (public_server_mode(options) && time_to_check_for_correct_dns < now) { if (!time_to_check_for_correct_dns) { time_to_check_for_correct_dns = now + 60 + crypto_rand_int(120); } else { |