diff options
author | Roger Dingledine <arma@torproject.org> | 2007-10-25 04:40:27 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2007-10-25 04:40:27 +0000 |
commit | 4ef1c459ba360abdbb7d48d5055ad7b80f64b450 (patch) | |
tree | 2aa28a0e87164fbeb617ad0594a6dbfe23136e66 /src | |
parent | ea4c3d6d1dfe75f14c6c8934c4e6fcfbc5afc204 (diff) | |
download | tor-4ef1c459ba360abdbb7d48d5055ad7b80f64b450.tar tor-4ef1c459ba360abdbb7d48d5055ad7b80f64b450.tar.gz |
Refuse to start if both ORPort and UseBridges are set. Bugfix
on 0.2.0.x.
svn:r12182
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index b4d7e3e87..9997bfbe0 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -2780,6 +2780,11 @@ options_validate(or_options_t *old_options, or_options_t *options, "of the Internet, so they must not set Reachable*Addresses " "or FascistFirewall."); + if (options->UseBridges && + server_mode(options)) + REJECT("Servers must be able to freely connect to the rest " + "of the Internet, so they must not set UseBridges."); + options->_AllowInvalid = 0; if (options->AllowInvalidNodes) { SMARTLIST_FOREACH(options->AllowInvalidNodes, const char *, cp, { |