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

[or-cvs] post 0.0.9.x, demand that servers declare at least 20000 by...



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

Modified Files:
	config.c 
Log Message:
post 0.0.9.x, demand that servers declare at least 20000 bytes/s
for bandwidthrate


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.292
retrieving revision 1.293
diff -u -d -r1.292 -r1.293
--- config.c	4 Jan 2005 02:25:36 -0000	1.292
+++ config.c	4 Jan 2005 03:46:50 -0000	1.293
@@ -1368,8 +1368,8 @@
     result = -1;
   }
   if (server_mode(options) &&
-      options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH) {
-    log(LOG_WARN,"BandwidthRate is set to %d bytes/second. For servers, it must be at least %d.", (int)options->BandwidthRate, ROUTER_REQUIRED_MIN_BANDWIDTH);
+      options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH*2) {
+    log(LOG_WARN,"BandwidthRate is set to %d bytes/second. For servers, it must be at least %d.", (int)options->BandwidthRate, ROUTER_REQUIRED_MIN_BANDWIDTH*2);
     result = -1;
   }