summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-02-29 01:31:33 +0000
committerRoger Dingledine <arma@torproject.org>2004-02-29 01:31:33 +0000
commit4716d4d8715f25ed2536f3c6fb35e5d3392669c4 (patch)
tree63d6554d99dbb5aac78d2ee75327f45a6bf70769 /src/or/directory.c
parentb4338ce704efbc1f9d2ade37e21dfed9a2465e66 (diff)
downloadtor-4716d4d8715f25ed2536f3c6fb35e5d3392669c4.tar.gz
tor-4716d4d8715f25ed2536f3c6fb35e5d3392669c4.zip
bugfix: only warn about an unrouter router after we've fetched a directory
svn:r1178
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 33da6e253b..698e752d72 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -10,6 +10,7 @@ static int directory_handle_command(connection_t *conn);
/********* START VARIABLES **********/
extern or_options_t options; /* command-line and config-file options */
+extern int has_fetched_directory;
static char fetchstring[] = "GET / HTTP/1.0\r\n\r\n";
static char answerstring[] = "HTTP/1.0 200 OK\r\n\r\n";
@@ -129,6 +130,7 @@ int connection_dir_process_inbuf(connection_t *conn) {
} else {
log_fn(LOG_INFO,"updated routers.");
}
+ has_fetched_directory=1;
if(options.ORPort) { /* connect to them all */
router_retry_connections();
}