aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-23 21:33:59 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-23 21:33:59 +0000
commitabb8576538136f1a2ce02e6c30c0009b95382975 (patch)
tree3d41d4598098e5e31f6366831d055f0cbd5eafe9
parentb726507d367bbc46b9cefcb26afe32cd2cd12833 (diff)
downloadtor-abb8576538136f1a2ce02e6c30c0009b95382975.tar
tor-abb8576538136f1a2ce02e6c30c0009b95382975.tar.gz
But, of course, mirrors should get the most up-to-date server in any case.
svn:r5135
-rw-r--r--src/or/routerlist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 51792e928..f1747325d 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -2356,6 +2356,7 @@ router_list_downloadable(void)
smartlist_t *superseded = smartlist_create();
smartlist_t *downloading;
time_t now = time(NULL);
+ int mirror = server_mode(get_options()) && get_options()->DirPort;
if (!routerstatus_list)
return superseded;
@@ -2434,7 +2435,8 @@ router_list_downloadable(void)
++n_uptodate;
rs->should_download = 0;
--n_downloadable;
- } else if (ri->platform &&
+ } else if (!mirror &&
+ ri->platform &&
!tor_version_as_new_as(ri->platform, "0.1.1.6-alpha") &&
ri->published_on + MAX_OLD_SERVER_DOWNLOAD_RATE > now) {
/* Same digest, or date is up-to-date, or we have a comparatively recent