aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/or_options_st.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2021-01-25 02:16:44 -0500
committerRoger Dingledine <arma@torproject.org>2021-01-25 02:16:44 -0500
commit01a5b41be0aa0d8ab2574d7075af8db2878a1cf3 (patch)
treeabb76cfb613d90d25e22cb00b38410df3bcd1dcd /src/app/config/or_options_st.h
parentaf5250b1df61f6c1e0398237defdcb3c34e1b545 (diff)
downloadtor-01a5b41be0aa0d8ab2574d7075af8db2878a1cf3.tar.gz
tor-01a5b41be0aa0d8ab2574d7075af8db2878a1cf3.zip
New ReconfigDropsBridgeDescs config option
Let external bridge reachability testing tools discard cached bridge descriptors when setting new bridges, so they can be sure to get a clean reachability test. Implements ticket 40209.
Diffstat (limited to 'src/app/config/or_options_st.h')
-rw-r--r--src/app/config/or_options_st.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/config/or_options_st.h b/src/app/config/or_options_st.h
index 4364f145ed..d3488afa5c 100644
--- a/src/app/config/or_options_st.h
+++ b/src/app/config/or_options_st.h
@@ -293,6 +293,13 @@ struct or_options_t {
* disabled. */
int CircuitPadding;
+ /** Boolean: if true, then this client will discard cached bridge
+ * descriptors on a setconf or other config change that impacts guards
+ * or bridges (see options_transition_affects_guards() for exactly which
+ * config changes trigger it). Useful for tools that test bridge
+ * reachability by fetching fresh descriptors. */
+ int ReconfigDropsBridgeDescs;
+
/** Boolean: if true, then this client will only use circuit padding
* algorithms that are known to use a low amount of overhead. If false,
* we will use all available circuit padding algorithms.