aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-07-20 19:45:29 +0000
committerRoger Dingledine <arma@torproject.org>2004-07-20 19:45:29 +0000
commitd5999a24af8076147e661328d4948b6522f0051d (patch)
tree572a91e5da5aab0a03c854ade7fed8a394dea799 /src/or/router.c
parent66fc6cf04a006904605ffdeda13140acf237ff8c (diff)
downloadtor-d5999a24af8076147e661328d4948b6522f0051d.tar.gz
tor-d5999a24af8076147e661328d4948b6522f0051d.zip
also don't hang up on him if we're an OR and he's an authdirserver
otherwise we keep getting taken out of the running-routers list svn:r2063
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 2f2769ca3d..1ff60d2d0e 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -368,6 +368,14 @@ void router_retry_connections(void) {
}
}
+int router_is_clique_mode(routerinfo_t *router) {
+ if(router->is_trusted_dir)
+ return 1;
+ if(!strncmp(router->platform, "Tor 0.0.7", 9))
+ return 1;
+ return 0;
+}
+
/*
* OR descriptor generation.
*/