瀏覽代碼

Update authority votes to match updated proposal.

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

+ 10 - 10
src/or/dirserv.c

@@ -2920,19 +2920,19 @@ dirserv_generate_networkstatus_vote_obj(crypto_pk_t *private_key,
   v3_out->client_versions = client_versions;
   v3_out->server_versions = server_versions;
 
-  /* These are hardwired to avoid disaster. */
+  /* These are hardwired, to avoid disaster. */
   v3_out->recommended_relay_protocols =
-    tor_strdup("DirCache=1 HSDir=1 Desc=1-2 Cons=1-2 Microdesc=1-2 "
-               "HSMid=1 Link=3-4 LinkAuth=1 Relay=1-2");
+    tor_strdup("Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSMid=1 Link=4 "
+               "LinkAuth=1 Microdesc=1-2 Relay=2");
   v3_out->recommended_client_protocols =
-    tor_strdup("DirCache=1 HSDir=1 Desc=1 Cons=1 Microdesc=1 "
-               "HSMid=1 Link=4 LinkAuth=1 Relay=2");
-  v3_out->required_relay_protocols =
-    tor_strdup("DirCache=1 HSDir=1 Desc=1 Cons=1 Microdesc=1 "
-               "HSMid=1 Link=3-4 LinkAuth=1 Relay=1-2");
+    tor_strdup("Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSMid=1 Link=4 "
+               "LinkAuth=1 Microdesc=1-2 Relay=2");
   v3_out->required_client_protocols =
-    tor_strdup("DirCache=1 HSDir=1 Desc=1 Cons=1 Microdesc=1 "
-               "HSMid=1 Link=1 LinkAuth=1 Relay=2");
+    tor_strdup("Cons=1-2 Desc=1-2 DirCache=1 HSDir=1 HSMid=1 Link=4 "
+               "LinkAuth=1 Microdesc=1-2 Relay=2");
+  v3_out->required_relay_protocols =
+    tor_strdup("Cons=1 Desc=1 DirCache=1 HSDir=1 HSMid=1 Link=3-4 "
+               "LinkAuth=1 Microdesc=1 Relay=1-2");
 
   v3_out->package_lines = smartlist_new();
   {