diff options
author | Matthew Finkel <Matthew.Finkel@gmail.com> | 2014-10-28 22:01:06 +0000 |
---|---|---|
committer | David Goulet <dgoulet@ev0ke.net> | 2015-12-16 16:16:01 +0100 |
commit | 1ceb7142a131bd8706663d2b3c27d66a2dcb2a46 (patch) | |
tree | 480882ff413ca76e5bb8af14e355214b2a19e4bf /src/or/router.h | |
parent | 467d0919d26977322a9404a9f0c426ac67c475fb (diff) | |
download | tor-1ceb7142a131bd8706663d2b3c27d66a2dcb2a46.tar.gz tor-1ceb7142a131bd8706663d2b3c27d66a2dcb2a46.zip |
A relay now advertises "tunnelled-dir-server" in its descriptor
When a relay does not have an open directory port but it has an
orport configured and is accepting client connections then it can
now service tunnelled directory requests, too. This was already true
of relays with an dirport configured.
We also conditionally stop advertising this functionality if the
relay is nearing its bandwidth usage limit - same as how dirport
advertisement is determined.
Partial implementation of prop 237, ticket 12538
Diffstat (limited to 'src/or/router.h')
-rw-r--r-- | src/or/router.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.h b/src/or/router.h index 85f43d804d..f176477d77 100644 --- a/src/or/router.h +++ b/src/or/router.h @@ -41,6 +41,7 @@ int init_keys_client(void); int check_whether_orport_reachable(void); int check_whether_dirport_reachable(void); +int dir_server_mode(const or_options_t *options); void consider_testing_reachability(int test_or, int test_dir); void router_orport_found_reachable(void); void router_dirport_found_reachable(void); |