diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-12-08 12:59:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-12-16 11:34:31 -0500 |
commit | d9200d853d5b9125ebcb47ae5a02ef0cd52f436a (patch) | |
tree | d6161dab1023c4a17f1aa1c49874ecc44d8cd82f /src/or/entrynodes.h | |
parent | deb8bcadced3c54d986c526662444a46e630621d (diff) | |
download | tor-d9200d853d5b9125ebcb47ae5a02ef0cd52f436a.tar.gz tor-d9200d853d5b9125ebcb47ae5a02ef0cd52f436a.zip |
Make NumEntryGuards work as expected again.
Further, add a "guard-n-primary-guards-to-use" parameter, defaulting
to 1, for NumEntryGuards to override.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r-- | src/or/entrynodes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index 827755ab11..e2ae2561f3 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -472,6 +472,11 @@ int num_bridges_usable(void); */ #define DFLT_N_PRIMARY_GUARDS 3 /** + * Of the live guards on the primary guard list, how many do we consider when + * choosing a guard to use? + */ +#define DFLT_N_PRIMARY_GUARDS_TO_USE 1 +/** * If we haven't successfully built or used a circuit in this long, then * consider that the internet is probably down. */ @@ -506,6 +511,7 @@ STATIC int get_remove_unlisted_guards_after_days(void); STATIC int get_guard_lifetime(void); STATIC int get_guard_confirmed_min_lifetime(void); STATIC int get_n_primary_guards(void); +STATIC int get_n_primary_guards_to_use(void); STATIC int get_internet_likely_down_interval(void); STATIC int get_nonprimary_guard_connect_timeout(void); STATIC int get_nonprimary_guard_idle_timeout(void); |