diff options
author | Roger Dingledine <arma@torproject.org> | 2005-01-04 03:46:50 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-01-04 03:46:50 +0000 |
commit | e6c1ab2daf45024ce67132c18be435403b434dd6 (patch) | |
tree | 29caa097f6cb3cf535f305f580a2ca58247b83e8 /src | |
parent | 4d30e2f4b8b7178c77f95b0328ebbbb8b091646f (diff) | |
download | tor-e6c1ab2daf45024ce67132c18be435403b434dd6.tar.gz tor-e6c1ab2daf45024ce67132c18be435403b434dd6.zip |
post 0.0.9.x, demand that servers declare at least 20000 bytes/s
for bandwidthrate
svn:r3277
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 8c6e74f381..284afe5e09 100644 --- a/src/or/config.c +++ b/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; } |