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/directory.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/directory.h')
-rw-r--r-- | src/or/directory.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.h b/src/or/directory.h index 2644e5703e..28442b9d4d 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -101,7 +101,8 @@ time_t download_status_increment_attempt(download_status_t *dls, * the optional status code <b>sc</b>. */ #define download_status_failed(dls, sc) \ download_status_increment_failure((dls), (sc), NULL, \ - get_options()->DirPort_set, time(NULL)) + dir_server_mode(get_options()), \ + time(NULL)) void download_status_reset(download_status_t *dls); static int download_status_is_ready(download_status_t *dls, time_t now, |