浏览代码

authdirs shouldn't complain about unreachability when they
fetch a descriptor from somebody else. this is not the right
time to increment the failure count.


svn:r6184

Roger Dingledine 19 年之前
父节点
当前提交
67b61fe475
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/routerlist.c

+ 1 - 1
src/or/routerlist.c

@@ -1544,7 +1544,7 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg,
           router->num_unreachable_notifications =
              old_router->num_unreachable_notifications;
         }
-        if (authdir &&
+        if (authdir && !from_cache && !from_fetch &&
             dirserv_thinks_router_is_blatantly_unreachable(router,
                                                            time(NULL))) {
           if (router->num_unreachable_notifications >= 3) {