Przeglądaj źródła

Make circuit_purpose_to_string handle CIRCUIT_PURPOSE_PATH_BIAS_TESTING

Nick Mathewson 11 lat temu
rodzic
commit
653b09e1ec
2 zmienionych plików z 6 dodań i 0 usunięć
  1. 3 0
      changes/bug8477-easypart
  2. 3 0
      src/or/circuitlist.c

+ 3 - 0
changes/bug8477-easypart

@@ -0,0 +1,3 @@
+  o Minor bugfixes:
+    - Log the purpose of a path-bias testing circuit correctly.
+      Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.  

+ 3 - 0
src/or/circuitlist.c

@@ -531,6 +531,9 @@ circuit_purpose_to_string(uint8_t purpose)
     case CIRCUIT_PURPOSE_CONTROLLER:
       return "Circuit made by controller";
 
+    case CIRCUIT_PURPOSE_PATH_BIAS_TESTING:
+      return "Path-bias testing circuit";
+
     default:
       tor_snprintf(buf, sizeof(buf), "UNKNOWN_%d", (int)purpose);
       return buf;