summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-11-22 13:12:48 -0500
committerNick Mathewson <nickm@torproject.org>2010-11-22 13:12:48 -0500
commit12f31867190bde6fb2c4ff169d343e7bff00a503 (patch)
tree2da40e80b3589036e57028e1926d5ff147054e1f /src
parent713db8dbfa172ea395ff3cee33fea875a052bd35 (diff)
downloadtor-12f31867190bde6fb2c4ff169d343e7bff00a503.tar.gz
tor-12f31867190bde6fb2c4ff169d343e7bff00a503.zip
Disable DirPort when BridgeRelay is set
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index e3d5e606f9..bd8c45758b 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -3281,6 +3281,12 @@ options_validate(or_options_t *old_options, or_options_t *options,
"PublishServerDescriptor line.");
}
+ if (options->BridgeRelay && options->DirPort) {
+ log_warn(LD_CONFIG, "Can't set a DirPort on a bridge relay; disabling "
+ "DirPort");
+ options->DirPort = 0;
+ }
+
if (options->MinUptimeHidServDirectoryV2 < 0) {
log_warn(LD_CONFIG, "MinUptimeHidServDirectoryV2 option must be at "
"least 0 seconds. Changing to 0.");