mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
discourage people from setting their dirfetchpostperiod more often
than once per minute svn:r2369
This commit is contained in:
parent
8385fdb590
commit
02e3e3327c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user