diff options
author | Roger Dingledine <arma@torproject.org> | 2004-09-23 19:23:32 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-09-23 19:23:32 +0000 |
commit | 02e3e3327cedc1fc6015c74ef8180745f403dec3 (patch) | |
tree | 8d4c1c22a715b95eaca3159d69d1780f18ac9ccb /src/or | |
parent | 8385fdb5906682338bb9d155a64f4b710c6cbd68 (diff) | |
download | tor-02e3e3327cedc1fc6015c74ef8180745f403dec3.tar tor-02e3e3327cedc1fc6015c74ef8180745f403dec3.tar.gz |
discourage people from setting their dirfetchpostperiod more often
than once per minute
svn:r2369
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 7e060efa1..4a746116f 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -841,8 +841,9 @@ int getconfig(int argc, char **argv, or_options_t *options) { result = -1; } - if(options->DirFetchPostPeriod < 1) { - log(LOG_WARN,"DirFetchPostPeriod option must be positive."); +#define MIN_DIRFETCHPOSTPERIOD 60 + if(options->DirFetchPostPeriod < MIN_DIRFETCHPOSTPERIOD) { + log(LOG_WARN,"DirFetchPostPeriod option must be at least %d.", MIN_DIRFETCHPOSTPERIOD); result = -1; } if(options->DirFetchPostPeriod > MIN_ONION_KEY_LIFETIME/2) { |