aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-30 20:25:15 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-30 20:25:15 -0400
commitefab3484e6ea3a799ccf61061450cfc35791ad41 (patch)
treeca844958b9b86612ede4fa9f50f739b9db3b27b3 /src
parent35699ef9f5d2814203653e16cb0cd176a0190ae0 (diff)
parent8828794dc295e3d40dbc35cd58f4c449c632085b (diff)
downloadtor-efab3484e6ea3a799ccf61061450cfc35791ad41.tar
tor-efab3484e6ea3a799ccf61061450cfc35791ad41.tar.gz
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 85a5e83d5..09fdc0c49 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3062,6 +3062,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)