diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-01 07:09:18 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-01 07:09:18 +0000 |
commit | 003d9df6b0b4894b45b09cd9b4d2469f3c8e4f77 (patch) | |
tree | ca7452f386065ad2f848fd849e7c099af72563af | |
parent | 410ecfcc712a7be76a859504f60c32441fac3a5a (diff) | |
download | tor-003d9df6b0b4894b45b09cd9b4d2469f3c8e4f77.tar.gz tor-003d9df6b0b4894b45b09cd9b4d2469f3c8e4f77.zip |
authdirservers shouldn't do orport reachability detection,
since they're in clique mode, so it will be rare to find a
server not already connected to them.
svn:r3949
-rw-r--r-- | src/or/router.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c index 753bf15819..a717f33d9c 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -383,7 +383,7 @@ static int can_reach_dir_port = 0; /** Return 1 if or port is known reachable; else return 0. */ int check_whether_orport_reachable(void) { - return can_reach_or_port; + return clique_mode(get_options()) || can_reach_or_port; } /** Return 1 if we don't have a dirport configured, or if it's reachable. */ int check_whether_dirport_reachable(void) { @@ -413,7 +413,8 @@ void consider_testing_reachability(void) { /** Annotate that we found our ORPort reachable. */ void router_orport_found_reachable(void) { if (!can_reach_or_port) { - log_fn(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent. Publishing server descriptor."); + if (!clique_mode(get_options())) + log_fn(LOG_NOTICE,"Your ORPort is reachable from the outside. Excellent. Publishing server descriptor."); can_reach_or_port = 1; } } |