aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-10 20:45:31 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-10 20:45:31 +0000
commit9aa706e20c3ae91f6cac95964e291076b88ecd48 (patch)
treeaa50df5ac10c25413d7321fba023fe2f4ade3360 /src/or/router.c
parent355369a27a86942b34010392167ec9d284e294e4 (diff)
downloadtor-9aa706e20c3ae91f6cac95964e291076b88ecd48.tar.gz
tor-9aa706e20c3ae91f6cac95964e291076b88ecd48.zip
Bug 691 fix: do not shutdown Tor servers right away if the network is down.
svn:r17566
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 6b4dbb8304..7d215b3d7b 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -1733,7 +1733,7 @@ router_dump_router_to_string(char *s, size_t maxlen, routerinfo_t *router,
}
/* Write the exit policy to the end of 's'. */
- if (dns_seems_to_be_broken() ||
+ if (dns_seems_to_be_broken() || has_dns_init_failed() ||
!router->exit_policy || !smartlist_len(router->exit_policy)) {
/* DNS is screwed up; don't claim to be an exit. */
strlcat(s+written, "reject *:*\n", maxlen-written);