From 0ff56da7e455d1a2e4dce3bf6d2302910df5229d Mon Sep 17 00:00:00 2001 From: Jonathan Tooker <111791304+JDTX0@users.noreply.github.com> Date: Wed, 10 Jun 2026 23:07:43 -0500 Subject: [PATCH] core/dnsserver: propagate HTTPRequestValidateFunc to all configs in a server block (#8169) Signed-off-by: Jonathan Tooker --- core/dnsserver/register.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/dnsserver/register.go b/core/dnsserver/register.go index 3c7610b83..55d311235 100644 --- a/core/dnsserver/register.go +++ b/core/dnsserver/register.go @@ -275,6 +275,10 @@ func propagateConfigParams(configs []*Config) { c.WriteTimeout = c.firstConfigInBlock.WriteTimeout c.IdleTimeout = c.firstConfigInBlock.IdleTimeout c.TsigSecret = c.firstConfigInBlock.TsigSecret + + // Propagate HTTPRequestValidateFunc so that custom path validators work in + // multi-transport blocks. Otherwise HTTPS 404s on non-"/dns-query" paths. + c.HTTPRequestValidateFunc = c.firstConfigInBlock.HTTPRequestValidateFunc } }