diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-30 20:23:22 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-30 20:23:22 -0400 |
commit | 8828794dc295e3d40dbc35cd58f4c449c632085b (patch) | |
tree | f54ff3969ba07f94bdf86ea42f7fdf41b12bed57 /src/or | |
parent | 65575b0755f64d21d59532bf58e6c27e14086bbb (diff) | |
parent | f8248abbd6c5e04037cedee29a8867700617acde (diff) | |
download | tor-8828794dc295e3d40dbc35cd58f4c449c632085b.tar tor-8828794dc295e3d40dbc35cd58f4c449c632085b.tar.gz |
Merge remote-tracking branch 'public/bug10849_023_bruteforce' into maint-0.2.3
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index d5c568947..f6db98e66 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) |