Ver código fonte

when a dirserver gets a mismatched fingerprint, log the expected
fp and the received fp


svn:r4372

Roger Dingledine 20 anos atrás
pai
commit
15f937c95e
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/or/dirserv.c

+ 2 - 1
src/or/dirserv.c

@@ -186,7 +186,8 @@ dirserv_router_fingerprint_is_known(const routerinfo_t *router)
     log_fn(LOG_DEBUG,"good fingerprint for '%s'",router->nickname);
     return 1; /* Right fingerprint. */
   } else {
-    log_fn(LOG_WARN,"mismatched fingerprint for '%s'",router->nickname);
+    log_fn(LOG_WARN,"mismatched fingerprint for '%s': expected '%s' got '%s'",
+           router->nickname, ent->fingerprint, fp);
     return -1; /* Wrong fingerprint. */
   }
 }