diff options
author | Roger Dingledine <arma@torproject.org> | 2006-06-03 02:56:44 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-06-03 02:56:44 +0000 |
commit | 8f902e4b58aed1788732c5f61686119b00e0382c (patch) | |
tree | 547aa4b07f9ca158c31a6aca0aeaf974a48cf1e1 /src | |
parent | 2431b2d8b01af73a0cc05774801fbc364e78d8ac (diff) | |
download | tor-8f902e4b58aed1788732c5f61686119b00e0382c.tar.gz tor-8f902e4b58aed1788732c5f61686119b00e0382c.zip |
don't stop fetching server descriptors if we're a server and
haven't found ourselves reachable yet.
svn:r6522
Diffstat (limited to 'src')
-rw-r--r-- | src/or/rephist.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index d31161ca07..00e40216c8 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -918,8 +918,17 @@ rep_hist_get_predicted_internal(time_t now, int *need_uptime, int rep_hist_circbuilding_dormant(void) { + /* Any ports used lately? These are pre-seeded if we just started + * up or if we're running a hidden service. */ if (predicted_ports_list || predicted_internal_time) - return 0; /* nothing used lately. */ + return 0; + + /* see if we'll still need to build testing circuits */ + if (server_mode(options) && !check_whether_orport_reachable()) + return 0; + if (!check_whether_dirport_reachable()) + return 0; + return 1; } |