Browse Source

if dirservers set assumereachable, it overrides their individual
reachability testing


svn:r4851

Roger Dingledine 20 years ago
parent
commit
f3bccdce73
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/or/dirserv.c

+ 2 - 1
src/or/dirserv.c

@@ -587,7 +587,8 @@ list_server_status(smartlist_t *routers, char **router_status_out)
       if (router_is_me(ri) && !we_are_hibernating()) {
         is_live = 1;
       } else if (conn && conn->state == OR_CONN_STATE_OPEN) {
-        is_live = now < ri->last_reachable + REACHABLE_TIMEOUT;
+        is_live = get_options()->AssumeReachable ||
+                  now < ri->last_reachable + REACHABLE_TIMEOUT;
       }
     } else {
       is_live = ri->is_running;