diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-10 20:45:31 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-10 20:45:31 +0000 |
commit | 9aa706e20c3ae91f6cac95964e291076b88ecd48 (patch) | |
tree | aa50df5ac10c25413d7321fba023fe2f4ade3360 /src/or/router.c | |
parent | 355369a27a86942b34010392167ec9d284e294e4 (diff) | |
download | tor-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.c | 2 |
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); |