Browse Source

Block managed proxies at a higher point

Nick Mathewson 8 years ago
parent
commit
5fa8d05bfa
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/or/config.c

+ 9 - 0
src/or/config.c

@@ -5741,6 +5741,15 @@ parse_transport_line(const or_options_t *options,
     goto err;
     goto err;
   }
   }
 
 
+  if (is_managed && options->NoExec) {
+    log_warn(LD_CONFIG,
+             "Managed proxies are not compatible with NoExec mode; ignoring."
+             "(%sTransportPlugin line was %s)",
+             server ? "Server" : "Client", escaped(line));
+    r = 0;
+    goto done;
+  }
+
   if (is_managed) {
   if (is_managed) {
     /* managed */
     /* managed */