Quellcode durchsuchen

Disable run-time changes to DisableIOCP: They do not work

Nick Mathewson vor 13 Jahren
Ursprung
Commit
dd6a9a923d
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 6 0
      src/or/config.c

+ 6 - 0
src/or/config.c

@@ -3966,6 +3966,12 @@ options_transition_allowed(const or_options_t *old,
     return -1;
   }
 
+  if (old->DisableIOCP != new_val->DisableIOCP) {
+    *msg = tor_strdup("While Tor is running, changing DisableIOCP "
+                      "is not allowed.");
+    return -1;
+  }
+
   return 0;
 }