aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2022-01-19 14:37:26 -0500
committerDavid Goulet <dgoulet@torproject.org>2022-03-15 15:26:37 -0400
commit2cdb5ceb1dfdeead331f6f65b8aa67791d91f94d (patch)
tree71310057e87ed6c8a080110c3b6a98392788adbf /src/feature/nodelist
parent347eaa32bfbcdfb13c9e34397d8b068ed6f6ba17 (diff)
downloadtor-2cdb5ceb1dfdeead331f6f65b8aa67791d91f94d.tar.gz
tor-2cdb5ceb1dfdeead331f6f65b8aa67791d91f94d.zip
relay: On new consensus, reconfigure DNS nameservers
This applies only for relays. Previous commit adds two new consensus parameters that dictate how libevent is configured with DNS resolution. And so, with a new consensus, we now look at those values in case they ever change. Without this, Exit relay would have to HUP or restart to apply any new Exit DNS consensus parameters. Related to #40312 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/nodelist')
-rw-r--r--src/feature/nodelist/networkstatus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/nodelist/networkstatus.c b/src/feature/nodelist/networkstatus.c
index 666083ae50..aaddf2331d 100644
--- a/src/feature/nodelist/networkstatus.c
+++ b/src/feature/nodelist/networkstatus.c
@@ -82,6 +82,7 @@
#include "feature/nodelist/routerinfo.h"
#include "feature/nodelist/routerlist.h"
#include "feature/nodelist/torcert.h"
+#include "feature/relay/dns.h"
#include "feature/relay/routermode.h"
#include "lib/crypt_ops/crypto_rand.h"
#include "lib/crypt_ops/crypto_util.h"
@@ -1706,6 +1707,7 @@ notify_after_networkstatus_changes(void)
congestion_control_new_consensus_params(c);
flow_control_new_consensus_params(c);
hs_service_new_consensus_params(c);
+ dns_new_consensus_params(c);
/* Maintenance of our L2 guard list */
maintain_layer2_guards();