Bug #928: Disallow BridgeRelay 1 and ORPort 0 configuration

This commit is contained in:
Chris Ball
2010-07-31 19:42:29 -04:00
committed by Nick Mathewson
parent 600ba86f4a
commit 9ffa977981
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
o Minor bugfixes:
- Disallow BridgeRelay 1 and ORPort 0 configuration.
Bugfix in 0.2.0.13-alpha, closes bug 928.
+3
View File
@@ -3590,6 +3590,9 @@ options_validate(or_options_t *old_options, or_options_t *options,
}
});
if (options->BridgeRelay == 1 && options->ORPort == 0)
REJECT("BridgeRelay is 1, ORPort is 0. This is an invalid combination.");
return 0;
#undef REJECT
#undef COMPLAIN