瀏覽代碼

Future-proof "id" lines against proposal 220.

Nick Mathewson 10 年之前
父節點
當前提交
2fa601c797
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/dirvote.c

+ 1 - 1
src/or/dirvote.c

@@ -3591,7 +3591,7 @@ dirvote_create_microdescriptor(const routerinfo_t *ri, int consensus_method)
   if (consensus_method >= MIN_METHOD_FOR_ID_HASH_IN_MD) {
     char idbuf[BASE64_DIGEST_LEN+1];
     digest_to_base64(idbuf, ri->cache_info.identity_digest);
-    smartlist_add_asprintf(chunks, "id %s\n", idbuf);
+    smartlist_add_asprintf(chunks, "id rsa1024 %s\n", idbuf);
   }
 
   output = smartlist_join_strings(chunks, "", 0, NULL);