mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
don't try to build intro circs until you've fetched the directory
svn:r1541
This commit is contained in:
+2
-1
@@ -333,7 +333,8 @@ static void run_scheduled_events(time_t now) {
|
|||||||
* our descriptor (if any). */
|
* our descriptor (if any). */
|
||||||
if(time_to_fetch_directory < now) {
|
if(time_to_fetch_directory < now) {
|
||||||
/* it's time to fetch a new directory and/or post our descriptor */
|
/* it's time to fetch a new directory and/or post our descriptor */
|
||||||
rend_services_init(); /* make new intro points and re-upload if necessary */
|
if(has_fetched_directory)
|
||||||
|
rend_services_init(); /* make new intro points and re-upload if necessary */
|
||||||
if(options.ORPort) {
|
if(options.ORPort) {
|
||||||
router_rebuild_descriptor();
|
router_rebuild_descriptor();
|
||||||
router_upload_dir_desc_to_dirservers();
|
router_upload_dir_desc_to_dirservers();
|
||||||
|
|||||||
@@ -704,7 +704,7 @@ int rend_services_init(void) {
|
|||||||
service->intro_exclude_nodes,
|
service->intro_exclude_nodes,
|
||||||
exclude_routers);
|
exclude_routers);
|
||||||
if (!router) {
|
if (!router) {
|
||||||
log_fn(LOG_WARN, "Can't establish more than %d introduction points",
|
log_fn(LOG_WARN, "Could only establish %d introduction points",
|
||||||
smartlist_len(service->intro_nodes));
|
smartlist_len(service->intro_nodes));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user