aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-03-06 15:19:04 -0500
committerRoger Dingledine <arma@torproject.org>2013-03-10 20:31:58 -0400
commit926b3d77f18d2345a70f953560f5a5312992aa73 (patch)
tree5957ee6092356e9e4b4916be4fb1def9fdc9da41 /src/or/config.c
parente4614d30e58007be1d44613d039891b6f131f50f (diff)
downloadtor-926b3d77f18d2345a70f953560f5a5312992aa73.tar.gz
tor-926b3d77f18d2345a70f953560f5a5312992aa73.zip
Tweak bug6783 patch.
Diffstat (limited to 'src/or/config.c')
-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 7e020b8638..1337056f5d 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -2380,6 +2380,10 @@ options_validate(or_options_t *old_options, or_options_t *options,
REJECT("TokenBucketRefillInterval must be between 1 and 1000 inclusive.");
}
+ if (options->DisableV2DirectoryInfo_ && ! authdir_mode(options)) {
+ REJECT("DisableV2DirectoryInfo_ set, but we aren't an authority.");
+ }
+
if (options->ExcludeExitNodes || options->ExcludeNodes) {
options->ExcludeExitNodesUnion_ = routerset_new();
routerset_union(options->ExcludeExitNodesUnion_,options->ExcludeExitNodes);