mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Bug #928: Disallow BridgeRelay 1 and ORPort 0 configuration
This commit is contained in:
committed by
Nick Mathewson
parent
600ba86f4a
commit
9ffa977981
@@ -0,0 +1,4 @@
|
||||
o Minor bugfixes:
|
||||
- Disallow BridgeRelay 1 and ORPort 0 configuration.
|
||||
Bugfix in 0.2.0.13-alpha, closes bug 928.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user