[or-cvs] but only if you"re a server
Roger Dingledine
arma at seul.org
Fri Dec 31 21:49:22 UTC 2004
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
config.c
Log Message:
...but only if you're a server
Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.288
retrieving revision 1.289
diff -u -d -r1.288 -r1.289
--- config.c 31 Dec 2004 21:47:54 -0000 1.288
+++ config.c 31 Dec 2004 21:49:20 -0000 1.289
@@ -1367,8 +1367,9 @@
log(LOG_WARN,"BandwidthBurst must be less than %d",INT_MAX);
result = -1;
}
- if (options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH) {
- log(LOG_WARN,"BandwidthRate is set to %d bytes/second. It must be at least %d.", (int)options->BandwidthRate, ROUTER_REQUIRED_MIN_BANDWIDTH);
+ if (server_mode(options) &&
+ options->BandwidthRate < ROUTER_REQUIRED_MIN_BANDWIDTH) {
+ log(LOG_WARN,"BandwidthRate is set to %d bytes/second. For servers, it must be at least %d.", (int)options->BandwidthRate, ROUTER_REQUIRED_MIN_BANDWIDTH);
result = -1;
}
More information about the tor-commits
mailing list