diff options
author | Roger Dingledine <arma@torproject.org> | 2005-02-03 22:58:22 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-02-03 22:58:22 +0000 |
commit | efa9bb55351e54026e66d9b28eec14f143e62544 (patch) | |
tree | a8fb83f2b79040edf8ef1310eac6c159f1dbeb75 /src/or/config.c | |
parent | a035032f09de213ae7f3137cfd3262067f4635a5 (diff) | |
download | tor-efa9bb55351e54026e66d9b28eec14f143e62544.tar tor-efa9bb55351e54026e66d9b28eec14f143e62544.tar.gz |
fix the latest bug: don't explode when some router declares a
bandwidthburst of 500 gigabytes.
this bug seems to have taken down most of the network. oops.
svn:r3523
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/config.c b/src/or/config.c index 41f8c3f1e..a7d29a49d 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -97,7 +97,7 @@ static config_var_t config_vars[] = { VAR("AllowUnverifiedNodes",CSV, AllowUnverifiedNodes, "middle,rendezvous"), VAR("AuthoritativeDirectory",BOOL, AuthoritativeDir, "0"), VAR("BandwidthRate", MEMUNIT, BandwidthRate, "1 MB"), - VAR("BandwidthBurst", MEMUNIT, BandwidthBurst, "48 MB"), + VAR("BandwidthBurst", MEMUNIT, BandwidthBurst, "5 MB"), VAR("ClientOnly", BOOL, ClientOnly, "0"), VAR("ContactInfo", STRING, ContactInfo, NULL), VAR("ControlPort", UINT, ControlPort, "0"), @@ -1414,11 +1414,11 @@ options_validate(or_options_t *options) log(LOG_WARN,"BandwidthBurst must be at least equal to BandwidthRate."); result = -1; } +#if 0 if (2*options->BandwidthRate > options->BandwidthBurst) { log(LOG_NOTICE,"You have chosen a BandwidthBurst less than twice BandwidthRate. Please consider setting your BandwidthBurst higher (at least %d), to provide better service to the Tor network.", (int)(2*options->BandwidthRate)); - result = -1; } - +#endif if (options->_MonthlyAccountingStart) { if (options->AccountingStart) { |