mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
i like the name FetchUselessDescriptors better.
svn:r6327
This commit is contained in:
parent
2a94c8b493
commit
a589650496
@ -164,7 +164,7 @@ static config_var_t _option_vars[] = {
|
||||
VAR("FastFirstHopPK", BOOL, FastFirstHopPK, "1"),
|
||||
VAR("FetchServerDescriptors",BOOL, FetchServerDescriptors,"1"),
|
||||
VAR("FetchHidServDescriptors",BOOL, FetchHidServDescriptors, "1"),
|
||||
VAR("FetchUselessRouters", BOOL, FetchUselessRouters, "0"),
|
||||
VAR("FetchUselessDescriptors",BOOL, FetchUselessDescriptors, "0"),
|
||||
VAR("Group", STRING, Group, NULL),
|
||||
VAR("HardwareAccel", BOOL, HardwareAccel, "0"),
|
||||
VAR("HashedControlPassword",STRING, HashedControlPassword, NULL),
|
||||
|
@ -1286,7 +1286,7 @@ typedef struct {
|
||||
int PublishHidServDescriptors; /**< and our hidden service descriptors? */
|
||||
int FetchServerDescriptors; /**< Do we fetch server descriptors as normal? */
|
||||
int FetchHidServDescriptors; /** and hidden service descriptors? */
|
||||
int FetchUselessRouters; /**< Do we fetch non-running descriptors too? */
|
||||
int FetchUselessDescriptors; /**< Do we fetch non-running descriptors too? */
|
||||
int AllDirActionsPrivate; /**< Should every directory action be sent
|
||||
* through a Tor circuit? */
|
||||
|
||||
|
@ -3251,7 +3251,7 @@ client_would_use_router(routerstatus_t *rs, time_t now)
|
||||
/* This one is too old to consider. */
|
||||
return 0;
|
||||
}
|
||||
if (!rs->is_running && !get_options()->FetchUselessRouters) {
|
||||
if (!rs->is_running && !get_options()->FetchUselessDescriptors) {
|
||||
/* If we had this router descriptor, we wouldn't even bother using it.
|
||||
* But, if we want to have a complete list, fetch it anyway. */
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user