diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-31 21:49:20 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-31 21:49:20 +0000 |
commit | e29d7329b30e932245ca19e1397fbd7b9abf0a3d (patch) | |
tree | 764954d55432bd19074c21e8af5008c3b98e924a /src | |
parent | 95f3e6161b0b6182e8ed887067138da93dd0b990 (diff) | |
download | tor-e29d7329b30e932245ca19e1397fbd7b9abf0a3d.tar.gz tor-e29d7329b30e932245ca19e1397fbd7b9abf0a3d.zip |
...but only if you're a server
svn:r3233
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 9fbd357b3a..7d81ad4f97 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1367,8 +1367,9 @@ options_validate(or_options_t *options) log(LOG_WARN,"BandwidthBurst must be less than %d",INT_MAX); result = -1; } - if (options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH) { - log(LOG_WARN,"BandwidthRate is set to %d bytes/second. It must be at least %d.", (int)options->BandwidthRate, ROUTER_REQUIRED_MIN_BANDWIDTH); + 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); result = -1; } |