summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-02-15 17:24:13 -0500
committerNick Mathewson <nickm@torproject.org>2013-03-19 16:02:19 -0400
commit343f7aa05967df43c3f7e5b392b66e21c08b7cb1 (patch)
tree3ae18397f084e343189e716b2258d48e77858860 /src/or/or.h
parentc6ca199888102a825f004f8613331f97525da486 (diff)
downloadtor-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.h3
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. */