mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
But, of course, mirrors should get the most up-to-date server in any case.
svn:r5135
This commit is contained in:
parent
b726507d36
commit
abb8576538
@ -2356,6 +2356,7 @@ router_list_downloadable(void)
|
|||||||
smartlist_t *superseded = smartlist_create();
|
smartlist_t *superseded = smartlist_create();
|
||||||
smartlist_t *downloading;
|
smartlist_t *downloading;
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
|
int mirror = server_mode(get_options()) && get_options()->DirPort;
|
||||||
|
|
||||||
if (!routerstatus_list)
|
if (!routerstatus_list)
|
||||||
return superseded;
|
return superseded;
|
||||||
@ -2434,7 +2435,8 @@ router_list_downloadable(void)
|
|||||||
++n_uptodate;
|
++n_uptodate;
|
||||||
rs->should_download = 0;
|
rs->should_download = 0;
|
||||||
--n_downloadable;
|
--n_downloadable;
|
||||||
} else if (ri->platform &&
|
} else if (!mirror &&
|
||||||
|
ri->platform &&
|
||||||
!tor_version_as_new_as(ri->platform, "0.1.1.6-alpha") &&
|
!tor_version_as_new_as(ri->platform, "0.1.1.6-alpha") &&
|
||||||
ri->published_on + MAX_OLD_SERVER_DOWNLOAD_RATE > now) {
|
ri->published_on + MAX_OLD_SERVER_DOWNLOAD_RATE > now) {
|
||||||
/* Same digest, or date is up-to-date, or we have a comparatively recent
|
/* Same digest, or date is up-to-date, or we have a comparatively recent
|
||||||
|
Loading…
Reference in New Issue
Block a user