aboutsummaryrefslogtreecommitdiff
path: root/src/feature/rend/rendcommon.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-07-12 09:23:57 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-28 16:01:57 -0400
commit8f13c3d3ed842d8db13bcf9ca6393dbe8e5781e3 (patch)
tree9245762890f4b0d6d5fb2044acead3868a0f2ecf /src/feature/rend/rendcommon.c
parentf661d856fd83cb978320bf55ba5dfdee55a666b8 (diff)
downloadtor-8f13c3d3ed842d8db13bcf9ca6393dbe8e5781e3.tar.gz
tor-8f13c3d3ed842d8db13bcf9ca6393dbe8e5781e3.zip
hs: Remove rend_client_non_anonymous_mode_enabled
The removal of Tor2Web made this function useless. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/rend/rendcommon.c')
-rw-r--r--src/feature/rend/rendcommon.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/feature/rend/rendcommon.c b/src/feature/rend/rendcommon.c
index 6e19d56b30..8cb5fd91e6 100644
--- a/src/feature/rend/rendcommon.c
+++ b/src/feature/rend/rendcommon.c
@@ -987,16 +987,11 @@ rend_allow_non_anonymous_connection(const or_options_t* options)
}
/* Is this a rend client or server in non-anonymous mode?
- * Clients must be specifically compiled in this mode.
- * Onion services can be configured to start in this mode.
- * Prefer rend_client_non_anonymous_mode_enabled() or
- * rend_service_non_anonymous_mode_enabled() whenever possible, so that checks
- * are specific to Single Onion Services. */
+ * Onion services can be configured to start in this mode for single onion. */
int
rend_non_anonymous_mode_enabled(const or_options_t *options)
{
- return (rend_client_non_anonymous_mode_enabled(options)
- || rend_service_non_anonymous_mode_enabled(options));
+ return rend_service_non_anonymous_mode_enabled(options);
}
/* Make sure that tor only builds one-hop circuits when they would not