Browse Source

post 0.0.9.x, demand that servers declare at least 20000 bytes/s
for bandwidthrate


svn:r3277

Roger Dingledine 19 years ago
parent
commit
e6c1ab2daf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/or/config.c

+ 2 - 2
src/or/config.c

@@ -1368,8 +1368,8 @@ options_validate(or_options_t *options)
     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;
   }