aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-25 14:24:41 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-25 14:24:41 -0400
commitf8248abbd6c5e04037cedee29a8867700617acde (patch)
treec23af6c2e07fc5cf0a9c6fc0cb522bc759574687
parentb0e1ddbd98038e3c7326970887c74f169701cf35 (diff)
downloadtor-f8248abbd6c5e04037cedee29a8867700617acde.tar.gz
tor-f8248abbd6c5e04037cedee29a8867700617acde.zip
Forbid TunneledDirConns 0 and PreferTunneledDirConns 0 if being a HS
Fixes bug 10849; bugfix on 0.2.1.1-alpha (I believe)
-rw-r--r--changes/bug10849_0236
-rw-r--r--src/or/config.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/changes/bug10849_023 b/changes/bug10849_023
new file mode 100644
index 0000000000..480dea3de0
--- /dev/null
+++ b/changes/bug10849_023
@@ -0,0 +1,6 @@
+ o Major bugfixes:
+ - When running a hidden service, do not allow TunneledDirConns 0;
+ this will keep the hidden service from running, and also
+ make it publish its descriptors directly over HTTP. Fixes bug 10849;
+ bugfix on 0.2.1.1-alpha.
+
diff --git a/src/or/config.c b/src/or/config.c
index d5c5689474..f6db98e667 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -4049,6 +4049,10 @@ options_validate(or_options_t *old_options, or_options_t *options,
REJECT("If you set UseBridges, you must specify at least one bridge.");
if (options->UseBridges && !options->TunnelDirConns)
REJECT("If you set UseBridges, you must set TunnelDirConns.");
+ if (options->RendConfigLines &&
+ (!options->TunnelDirConns || !options->PreferTunneledDirConns))
+ REJECT("If you are running a hidden service, you must set TunnelDirConns "
+ "and PreferTunneledDirConns");
for (cl = options->Bridges; cl; cl = cl->next) {
if (parse_bridge_line(cl->value, 1)<0)