mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 15:42:34 +01:00
fixup! Make router_pick_directory_server respect PDS_NO_EXISTING_*
Clean up comments on PDS_NO_EXISTING_*
This commit is contained in:
parent
bb137e23c1
commit
cae0e7b06b
1 changed files with 5 additions and 6 deletions
11
src/or/or.h
11
src/or/or.h
|
@ -4925,14 +4925,13 @@ typedef struct dir_server_t {
|
||||||
* or extrainfo documents.
|
* or extrainfo documents.
|
||||||
*
|
*
|
||||||
* Passed to router_pick_directory_server (et al)
|
* Passed to router_pick_directory_server (et al)
|
||||||
*
|
|
||||||
* [XXXX NOTE: This option is only implemented for pick_trusteddirserver,
|
|
||||||
* not pick_directory_server. If we make it work on pick_directory_server
|
|
||||||
* too, we could conservatively make it only prevent multiple fetches to
|
|
||||||
* the same authority, or we could aggressively make it prevent multiple
|
|
||||||
* fetches to _any_ single directory server.]
|
|
||||||
*/
|
*/
|
||||||
#define PDS_NO_EXISTING_SERVERDESC_FETCH (1<<3)
|
#define PDS_NO_EXISTING_SERVERDESC_FETCH (1<<3)
|
||||||
|
/** Flag to indicate that we should not use any directory authority to which
|
||||||
|
* we have an existing directory connection for downloading microdescs.
|
||||||
|
*
|
||||||
|
* Passed to router_pick_directory_server (et al)
|
||||||
|
*/
|
||||||
#define PDS_NO_EXISTING_MICRODESC_FETCH (1<<4)
|
#define PDS_NO_EXISTING_MICRODESC_FETCH (1<<4)
|
||||||
|
|
||||||
/** This node is to be chosen as a directory guard, so don't choose any
|
/** This node is to be chosen as a directory guard, so don't choose any
|
||||||
|
|
Loading…
Add table
Reference in a new issue