Ver código fonte

Use the correct spelling for "Dependent" in the control protocol.

Fixes #18146.
J. Ryan Stinnett 7 anos atrás
pai
commit
58172be657
2 arquivos alterados com 6 adições e 1 exclusões
  1. 5 0
      changes/18146
  2. 1 1
      src/or/config.c

+ 5 - 0
changes/18146

@@ -0,0 +1,5 @@
+  o Minor bugfix (control protocol):
+    - The reply to a "GETINFO config/names" request via the control protocol
+      now spells the type "Dependent" correctly.  This is a breaking change in
+      the control protocol.  (It seems to be ignored by the most common known
+      clients.)  Fixes bug 18146; bugfix on 0.1.1.4-alpha.

+ 1 - 1
src/or/config.c

@@ -7859,7 +7859,7 @@ getinfo_helper_config(control_connection_t *conn,
         case CONFIG_TYPE_CSV: type = "CommaList"; break;
         case CONFIG_TYPE_CSV_INTERVAL: type = "TimeIntervalCommaList"; break;
         case CONFIG_TYPE_LINELIST: type = "LineList"; break;
-        case CONFIG_TYPE_LINELIST_S: type = "Dependant"; break;
+        case CONFIG_TYPE_LINELIST_S: type = "Dependent"; break;
         case CONFIG_TYPE_LINELIST_V: type = "Virtual"; break;
         default:
         case CONFIG_TYPE_OBSOLETE: