mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
No need to load cached directory twice
svn:r4860
This commit is contained in:
parent
715b972300
commit
208bdf5f27
1 changed files with 2 additions and 0 deletions
|
@ -370,6 +370,7 @@ init_keys(void)
|
|||
if (!router_digest_is_trusted_dir(digest)) {
|
||||
add_trusted_dir_server(NULL, (uint16_t)options->DirPort, digest);
|
||||
}
|
||||
#if 0
|
||||
/* 7. [authdirserver only] load old directory, if it's there */
|
||||
tor_snprintf(keydir,sizeof(keydir),"%s/cached-directory", datadir);
|
||||
log_fn(LOG_INFO,"Loading cached directory from \"%s\"...",keydir);
|
||||
|
@ -384,6 +385,7 @@ init_keys(void)
|
|||
}
|
||||
tor_free(cp);
|
||||
}
|
||||
#endif
|
||||
/* success */
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue