summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-10-01 13:40:04 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-10-01 13:41:21 +0300
commite8e42f4af97190d5df0b5fa1895f74194650df0b (patch)
treed7929601992cdeec47d4c7ab4046c848da81b091 /src/feature
parent723288a32fb5773899790f22ea028db8e3c3d05b (diff)
downloadtor-e8e42f4af97190d5df0b5fa1895f74194650df0b.tar.gz
tor-e8e42f4af97190d5df0b5fa1895f74194650df0b.zip
Help users who try to use v2 client auth in v3 onions.
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/hs/hs_config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/feature/hs/hs_config.c b/src/feature/hs/hs_config.c
index 7424d7d3ce..3b6caaec6a 100644
--- a/src/feature/hs/hs_config.c
+++ b/src/feature/hs/hs_config.c
@@ -253,6 +253,16 @@ config_has_invalid_options(const config_line_t *line_,
"version %" PRIu32 " of service in %s",
opt, service->config.version,
service->config.directory_path);
+
+ if (!strcasecmp(line->key, "HiddenServiceAuthorizeClient")) {
+ /* Special case this v2 option so that we can offer alternatives.
+ * If more such special cases appear, it would be good to
+ * generalize the exception mechanism here. */
+ log_warn(LD_CONFIG, "For v3 onion service client authorization, "
+ "please read the 'CLIENT AUTHORIZATION' section in the "
+ "manual.");
+ }
+
ret = 1;
/* Continue the loop so we can find all possible options. */
continue;