[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] prevent auth dir servers from enabling entry nodes.
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
config.c
Log Message:
prevent auth dir servers from enabling entry nodes.
Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.477
retrieving revision 1.478
diff -u -p -d -r1.477 -r1.478
--- config.c 2 Jan 2006 05:14:21 -0000 1.477
+++ config.c 2 Jan 2006 08:40:58 -0000 1.478
@@ -1905,6 +1905,11 @@ options_validate(or_options_t *old_optio
if (!options->RecommendedServerVersions)
options->RecommendedServerVersions =
config_lines_dup(options->RecommendedVersions);
+ if (options->UseEntryNodes) {
+ notice(LD_CONFIG, "Authoritative directory servers can't set "
+ "UseEntryNodes. Disabling.");
+ options->UseEntryNodes = 0;
+ }
}
if (options->AuthoritativeDir && !options->DirPort)