diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-21 23:43:47 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-21 23:43:47 +0000 |
commit | 3c2c8ed42bdcc26edebb73531e0d6a22ab2fff07 (patch) | |
tree | 3dde6d847997ab4c2dc8a9641c1dff89694c2ffa /src/or/main.c | |
parent | f82a36508df3d1bb6517b94c8e86325c6f6d1360 (diff) | |
download | tor-3c2c8ed42bdcc26edebb73531e0d6a22ab2fff07.tar.gz tor-3c2c8ed42bdcc26edebb73531e0d6a22ab2fff07.zip |
0.0.8 ORs should autoconnect to authdirservers and 0.0.7 servers
svn:r2091
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c index 759487c0ae..640edffe75 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -353,7 +353,7 @@ void directory_has_arrived(void) { has_fetched_directory=1; - if(clique_mode()) { /* connect to them all */ + if(server_mode()) { /* connect to the appropriate routers */ router_retry_connections(); } } @@ -541,7 +541,10 @@ static void run_scheduled_events(time_t now) { if(authdir_mode()) { /* We're a directory; dump any old descriptors. */ dirserv_remove_old_servers(); - /* dirservers try to reconnect, in case connections have failed */ + } + if(server_mode()) { + /* dirservers try to reconnect, in case connections have failed; + * and normal servers try to reconnect to dirservers */ router_retry_connections(); } |