summaryrefslogtreecommitdiff
path: root/src/feature/api
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-01-06 09:14:22 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-06 09:25:23 -0500
commit5c240db0bf7751d74ba438a1ca4ef0d051a53df7 (patch)
tree04f6c39d11df09f8f8ab67878eba97f180adad0f /src/feature/api
parentdca2629480f143ed8deb71b73b15c7c5ff890571 (diff)
downloadtor-5c240db0bf7751d74ba438a1ca4ef0d051a53df7.tar.gz
tor-5c240db0bf7751d74ba438a1ca4ef0d051a53df7.zip
Restore feature where nt-services detect non-"run_tor" modes.
Followup for #32883.
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 115d33d58e..40c64e1ab8 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) */