Преглед изворни кода

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

Nick Mathewson пре 12 година
родитељ
комит
dd6a9a923d
1 измењених фајлова са 6 додато и 0 уклоњено
  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;
 }