[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] But, of course, mirrors should get the most up-to-date serv...



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv24985/src/or

Modified Files:
	routerlist.c 
Log Message:
But, of course, mirrors should get the most up-to-date server in any case.

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.315
retrieving revision 1.316
diff -u -d -r1.315 -r1.316
--- routerlist.c	23 Sep 2005 21:25:29 -0000	1.315
+++ routerlist.c	23 Sep 2005 21:33:59 -0000	1.316
@@ -2356,6 +2356,7 @@
   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 @@
         ++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