[or-cvs] and dirservers don"t call you a guard if you"re running a

arma at seul.org arma at seul.org
Tue Mar 21 23:10:28 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	dirserv.c 
Log Message:
and dirservers don't call you a guard if you're running a
buggy version either.


Index: dirserv.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.311
retrieving revision 1.312
diff -u -p -d -r1.311 -r1.312
--- dirserv.c	20 Mar 2006 21:49:55 -0000	1.311
+++ dirserv.c	21 Mar 2006 23:10:26 -0000	1.312
@@ -1424,7 +1424,9 @@ generate_v2_networkstatus(void)
       int f_named = naming && ri->is_named;
       int f_valid = ri->is_valid;
       int f_guard = f_fast && f_stable &&
-                           ri->bandwidthcapacity > guard_bandwidth;
+                    ri->bandwidthcapacity > guard_bandwidth &&
+                    (!tor_version_as_new_as(ri->platform,"0.1.1.10-alpha") ||
+                     tor_version_as_new_as(ri->platform,"0.1.1.16-rc-cvs"));
       /* 0.1.1.9-alpha is the first version to support fetch by descriptor
        * hash. */
       int f_v2_dir = ri->dir_port &&



More information about the tor-commits mailing list