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

for bandwidthrate


svn:r3277
This commit is contained in:
Roger Dingledine 2005-01-04 03:46:50 +00:00
parent 4d30e2f4b8
commit e6c1ab2daf

View File

@ -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;
}