diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-15 17:24:13 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-19 16:02:19 -0400 |
commit | 343f7aa05967df43c3f7e5b392b66e21c08b7cb1 (patch) | |
tree | 3ae18397f084e343189e716b2258d48e77858860 /src/or/or.h | |
parent | c6ca199888102a825f004f8613331f97525da486 (diff) | |
download | tor-343f7aa05967df43c3f7e5b392b66e21c08b7cb1.tar.gz tor-343f7aa05967df43c3f7e5b392b66e21c08b7cb1.zip |
Make the guard lifetime configurable and adjustable via the consensus
Fixes 8240.
(Don't actually increase the default guard lifetime. It seems likely to
break too many things if done precipitiously.)
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 51c23d305d..b54834de32 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3605,6 +3605,9 @@ typedef struct { int PathBiasScaleFactor; /** @} */ + /** How long (seconds) do we keep a guard before picking a new one? */ + int GuardLifetime; + } or_options_t; /** Persistent state for an onion router, as saved to disk. */ |