diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2010-10-01 00:07:10 -0700 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-10-26 14:03:43 +0200 |
commit | 07ab559a8e9932fbed1e00e3210a1bb855cf1508 (patch) | |
tree | 3441c3e580164b6c18bb6b5446a9679577058055 /src/or/router.c | |
parent | c5a3664f27379f5f6cc9a2b92032d50ab34550f8 (diff) | |
download | tor-07ab559a8e9932fbed1e00e3210a1bb855cf1508.tar.gz tor-07ab559a8e9932fbed1e00e3210a1bb855cf1508.zip |
Add public_server_mode function.
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index 2afde746d4..45eeca09ff 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -954,6 +954,15 @@ server_mode(or_options_t *options) return (options->ORPort != 0 || options->ORListenAddress); } +/** Return true iff we are trying to be a non-bridge server. + */ +int +public_server_mode(or_options_t *options) +{ + if (!server_mode(options)) return 0; + return (!options->BridgeRelay); +} + /** Remember if we've advertised ourselves to the dirservers. */ static int server_is_advertised=0; |