aboutsummaryrefslogtreecommitdiff
path: root/src/app/config/config.c
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/config.c
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/config.c')
-rw-r--r--src/app/config/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/config/config.c b/src/app/config/config.c
index c7799ec1a2..79629a2465 100644
--- a/src/app/config/config.c
+++ b/src/app/config/config.c
@@ -628,6 +628,7 @@ static const config_var_t option_vars_[] = {
V(ConnectionPadding, AUTOBOOL, "auto"),
V(RefuseUnknownExits, AUTOBOOL, "auto"),
V(CircuitPadding, BOOL, "1"),
+ V(ReconfigDropsBridgeDescs, BOOL, "0"),
V(ReducedCircuitPadding, BOOL, "0"),
V(RejectPlaintextPorts, CSV, ""),
V(RelayBandwidthBurst, MEMUNIT, "0"),
@@ -2321,6 +2322,8 @@ options_act,(const or_options_t *old_options))
}
if (transition_affects_guards) {
+ if (options->ReconfigDropsBridgeDescs)
+ routerlist_drop_bridge_descriptors();
if (guards_update_all()) {
abandon_circuits = 1;
}