Skip to content
Snippets Groups Projects
Commit 20b75989 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

dtrt when only relaybandwidthburst is set

fixes bug 2470
parent 9c2cb6fc
No related branches found
No related tags found
No related merge requests found
o Major bugfixes:
- If relays set RelayBandwidthBurst but not RelayBandwidthRate,
Tor would ignore their RelayBandwidthBurst setting,
potentially using more bandwidth than expected. Bugfix on
0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
......@@ -3401,6 +3401,8 @@ options_validate(or_options_t *old_options, or_options_t *options,
if (options->RelayBandwidthRate && !options->RelayBandwidthBurst)
options->RelayBandwidthBurst = options->RelayBandwidthRate;
if (options->RelayBandwidthBurst && !options->RelayBandwidthRate)
options->RelayBandwidthRate = options->RelayBandwidthBurst;
if (options->RelayBandwidthRate > options->RelayBandwidthBurst)
REJECT("RelayBandwidthBurst must be at least equal "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment