Преглед на файлове

Fixed a bug with controller circuits

Note that there are still other bugs. For example Tor sometimes
thinks that controller circuits are HS circuits and for example
will disable optimistic data for controller circuits.
Steven Engler преди 4 години
родител
ревизия
754c972275
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      src/core/or/connection_edge.c

+ 3 - 1
src/core/or/connection_edge.c

@@ -3093,7 +3093,9 @@ connection_ap_handshake_send_begin,(entry_connection_t *ap_conn))
   edge_conn->begincell_flags = connection_ap_get_begincell_flags(ap_conn);
 
   tor_snprintf(payload,RELAY_PAYLOAD_SIZE, "%s:%d",
-               (circ->base_.purpose == CIRCUIT_PURPOSE_C_GENERAL) ?
+  //             (circ->base_.purpose == CIRCUIT_PURPOSE_C_GENERAL) ?
+               (circ->base_.purpose == CIRCUIT_PURPOSE_C_GENERAL ||
+                circ->base_.purpose == CIRCUIT_PURPOSE_CONTROLLER) ?
                  ap_conn->socks_request->address : "",
                ap_conn->socks_request->port);
   payload_len = (int)strlen(payload)+1;