diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-02-25 12:25:57 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-02-25 12:33:15 +0100 |
commit | 2917c0596c82a79ab814f30a43968bf78da8c3a9 (patch) | |
tree | 64c42f5848090d4ba371a479b75e8118706c4c62 /src/or/config.c | |
parent | c8f154e173df57992cfa85475944a03b6d882f01 (diff) | |
download | tor-2917c0596c82a79ab814f30a43968bf78da8c3a9.tar tor-2917c0596c82a79ab814f30a43968bf78da8c3a9.tar.gz |
Restrict PerConnBWRate|Burst to INT32_MAX, update manpage
All other bandwidthrate settings are restricted to INT32_MAX, but
this check was forgotten for PerConnBWRate and PerConnBWBurst. Also
update the manpage to reflect the fact that specifying a bandwidth
in terabytes does not make sense, because that value will be too
large.
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 5ad1d3f44..c9ff92173 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3228,6 +3228,12 @@ options_validate(or_options_t *old_options, or_options_t *options, if (ensure_bandwidth_cap(&options->RelayBandwidthBurst, "RelayBandwidthBurst", msg) < 0) return -1; + if (ensure_bandwidth_cap(&options->PerConnBWRate, + "PerConnBWRate", msg) < 0) + return -1; + if (ensure_bandwidth_cap(&options->PerConnBWBurst, + "PerConnBWBurst", msg) < 0) + return -1; if (server_mode(options)) { if (options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH) { |