Переглянути джерело

Prop210: Only clients benefit from multiple consensus downloads

Anything that's a server can afford to wait for a few minutes.
(Except for bridge relays, which act like clients.)
teor (Tim Wilson-Brown) 8 роки тому
батько
коміт
9882a88b74
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      src/or/networkstatus.c

+ 2 - 2
src/or/networkstatus.c

@@ -1286,14 +1286,14 @@ networkstatus_consensus_is_boostrapping(time_t now)
 }
 
 /** Check if we can use multiple directories for a consensus download.
- * Only clients (including bridges, but excluding bridge clients) benefit
+ * Only clients (including bridge relays, which act like clients) benefit
  * from multiple simultaneous consensus downloads. */
 int
 networkstatus_consensus_can_use_multiple_directories(
                                                   const or_options_t *options)
 {
   /* If we are a client, bridge, bridge client, or hidden service */
-  return (!directory_fetches_from_authorities(options));
+  return !public_server_mode(options);
 }
 
 /** Check if we can use fallback directory mirrors for a consensus download.