]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Simplify cannibalization logic now that all HS is vanguards
authorGeorge Kadianakis <desnacked@riseup.net>
Thu, 1 Jul 2021 14:56:56 +0000 (17:56 +0300)
committerGeorge Kadianakis <desnacked@riseup.net>
Thu, 1 Jul 2021 15:15:55 +0000 (18:15 +0300)
Co-authored-by: Mike Perry <mikeperry-git@torproject.org>
src/core/or/circuituse.c

index adf9e12ed5f759f63aa0f95cc79ab6fcaf51a73a..2ec391eca0495e0d74043071a590b3b258bb7588 100644 (file)
@@ -2049,13 +2049,11 @@ circuit_should_cannibalize_to_build(uint8_t purpose_to_build,
     return 0;
   }
 
-  /* For vanguards, the server-side intro circ is not cannibalized
-   * because we pre-build 4 hop HS circuits, and it only needs a 3 hop
-   * circuit. It is also long-lived, so it is more important that
-   * it have lower latency than get built fast.
+  /* The server-side intro circ is not cannibalized because it only
+   * needs a 3 hop circuit. It is also long-lived, so it is more
+   * important that it have lower latency than get built fast.
    */
-  if (circuit_should_use_vanguards(purpose_to_build) &&
-      purpose_to_build == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO) {
+  if (purpose_to_build == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO) {
     return 0;
   }