Commit 02e3e332 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

discourage people from setting their dirfetchpostperiod more often

than once per minute


svn:r2369
parent 8385fdb5
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment