Commit ff8aba70 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

bridges should use create_fast cells for their own circuits

fixes bug 4124, as noticed in bug 4115
parent 0b5d2646
Loading
Loading
Loading
Loading

changes/bug4124

0 → 100644
+6 −0
Changes for changes/bug4124: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
  o Security fixes:
    - Bridges relays now build circuits for themselves in a more similar
      way to how clients build them. Removes another avenue for
      enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
      when bridges were introduced.
+3 −2
Changes for src/or/circuitbuild.c: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -1961,9 +1961,10 @@ should_use_create_fast_for_circuit(origin_circuit_t *circ)
    return 1; /* our hand is forced: only a create_fast will work. */
  if (!options->FastFirstHopPK)
    return 0; /* we prefer to avoid create_fast */
  if (server_mode(options)) {
  if (public_server_mode(options)) {
    /* We're a server, and we know an onion key. We can choose.
     * Prefer to blend in. */
     * Prefer to blend our circuit into the other circuits we are
     * creating on behalf of others. */
    return 0;
  }