aboutsummaryrefslogtreecommitdiff
path: root/src/feature/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/api')
-rw-r--r--src/feature/api/tor_api_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/api/tor_api_internal.h b/src/feature/api/tor_api_internal.h
index d52b2caf44..ef06cd7e6f 100644
--- a/src/feature/api/tor_api_internal.h
+++ b/src/feature/api/tor_api_internal.h
@@ -29,6 +29,11 @@ struct tor_main_configuration_t {
/** Socket that Tor will use as an owning control socket. Owned. */
tor_socket_t owning_controller_socket;
+
+ /** Disable commands other than "run tor". Not for use from outside Tor
+ * itself; if you need to use this for embedding, please contact the tor
+ * developers. */
+ int run_tor_only;
};
#endif /* !defined(TOR_API_INTERNAL_H) */