diff options
author | Roger Dingledine <arma@torproject.org> | 2004-07-20 19:45:29 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-07-20 19:45:29 +0000 |
commit | d5999a24af8076147e661328d4948b6522f0051d (patch) | |
tree | 572a91e5da5aab0a03c854ade7fed8a394dea799 /src/or/router.c | |
parent | 66fc6cf04a006904605ffdeda13140acf237ff8c (diff) | |
download | tor-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.c | 8 |
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. */ |