Explorar o código

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

Nick Mathewson %!s(int64=14) %!d(string=hai) anos
pai
achega
dd6a9a923d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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;
 }