浏览代码

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


svn:r4372

Roger Dingledine 20 年之前
父节点
当前提交
15f937c95e
共有 1 个文件被更改,包括 2 次插入1 次删除
  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. */
   }
 }