mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
...but only if you're a server
svn:r3233
This commit is contained in:
parent
95f3e6161b
commit
e29d7329b3
@ -1367,8 +1367,9 @@ options_validate(or_options_t *options)
|
|||||||
log(LOG_WARN,"BandwidthBurst must be less than %d",INT_MAX);
|
log(LOG_WARN,"BandwidthBurst must be less than %d",INT_MAX);
|
||||||
result = -1;
|
result = -1;
|
||||||
}
|
}
|
||||||
if (options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH) {
|
if (server_mode(options) &&
|
||||||
log(LOG_WARN,"BandwidthRate is set to %d bytes/second. It must be at least %d.", (int)options->BandwidthRate, ROUTER_REQUIRED_MIN_BANDWIDTH);
|
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;
|
result = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user