Explorar o código

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 %!s(int64=20) %!d(string=hai) anos
pai
achega
67b61fe475
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {