mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
If the user sets RelayBandwidthRate but doesn't set
RelayBandwidthBurst, then make them equal rather than erroring out. svn:r12925
This commit is contained in:
parent
33f9c2c157
commit
ce636beff9
@ -21,6 +21,8 @@ Changes in version 0.2.0.14-alpha - 2007-12-??
|
|||||||
o Minor features:
|
o Minor features:
|
||||||
- If BridgeRelay is set to 1, then the default for
|
- If BridgeRelay is set to 1, then the default for
|
||||||
PublishServerDescriptor is now "bridge" rather than "v2,v3".
|
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
|
Changes in version 0.2.0.13-alpha - 2007-12-21
|
||||||
|
@ -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)
|
if (options->RelayBandwidthRate > options->RelayBandwidthBurst)
|
||||||
REJECT("RelayBandwidthBurst must be at least equal "
|
REJECT("RelayBandwidthBurst must be at least equal "
|
||||||
"to RelayBandwidthRate.");
|
"to RelayBandwidthRate.");
|
||||||
|
Loading…
Reference in New Issue
Block a user