Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions services/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
#include "util/data/dname.h"
#include "respip/respip.h"
#include "services/listen_dnsport.h"
#include "iterator/iter_utils.h"

#ifdef CLIENT_SUBNET
#include "edns-subnet/subnetmod.h"
Expand Down Expand Up @@ -967,6 +968,10 @@ mesh_state_create(struct module_env* env, struct query_info* qinfo,
mstate->s.edns_opts_back_in = NULL;
mstate->s.edns_opts_front_out = NULL;

/* Pre-seed no_cache_store based on stub/forward info. */
if (iter_stub_fwd_no_cache(&mstate->s, &mstate->s.qinfo, NULL, NULL))
mstate->s.no_cache_store = 1;

return mstate;
}

Expand Down