diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/or/config.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -21,6 +21,8 @@ Changes in version 0.2.0.14-alpha - 2007-12-?? o Minor features: - If BridgeRelay is set to 1, then the default for PublishServerDescriptor is now "bridge" rather than "v2,v3". + - If the user sets RelayBandwidthRate but doesn't set + RelayBandwidthBurst, then make them equal rather than erroring out. Changes in version 0.2.0.13-alpha - 2007-12-21 diff --git a/src/or/config.c b/src/or/config.c index d61cb23f82..1da844aba0 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3016,6 +3016,9 @@ options_validate(or_options_t *old_options, or_options_t *options, } } + if (options->RelayBandwidthRate && !options->RelayBandwidthBurst) + options->RelayBandwidthBurst = options->RelayBandwidthRate; + if (options->RelayBandwidthRate > options->RelayBandwidthBurst) REJECT("RelayBandwidthBurst must be at least equal " "to RelayBandwidthRate."); |