diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-04 10:41:11 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-04 10:41:25 -0500 |
commit | 317d16de04ef9f2fa827b3bea2d858069a721e24 (patch) | |
tree | fbda50fda1b1fce1f220d72765888a1ccd4cd934 /src/or | |
parent | 8be7f69f8d2bdf074e5e90279dd42e182562ba7d (diff) | |
download | tor-317d16de04ef9f2fa827b3bea2d858069a721e24.tar.gz tor-317d16de04ef9f2fa827b3bea2d858069a721e24.zip |
Increase the minimum value for the Fast flag to 4096.
Fix for 8145.
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dirserv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 6c4b119e43..f3cb2de918 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1986,9 +1986,12 @@ dirserv_compute_performance_thresholds(routerlist_t *rl, { /* We can vote on a parameter for the minimum and maximum. */ +#define ABSOLUTE_MIN_VALUE_FOR_FAST_FLAG 4096 int32_t min_fast, max_fast; min_fast = networkstatus_get_param(NULL, "FastFlagMinThreshold", - 0, 0, INT32_MAX); + ABSOLUTE_MIN_VALUE_FOR_FAST_FLAG, + ABSOLUTE_MIN_VALUE_FOR_FAST_FLAG, + INT32_MAX); max_fast = networkstatus_get_param(NULL, "FastFlagMaxThreshold", INT32_MAX, min_fast, INT32_MAX); if (fast_bandwidth < (uint32_t)min_fast) |