mirror of
https://github.com/coredns/coredns.git
synced 2026-06-15 13:40:11 -04:00
core/dnsserver: propagate HTTPRequestValidateFunc to all configs in a server block (#8169)
Signed-off-by: Jonathan Tooker <jonathan.tooker@netprotect.com>
This commit is contained in:
@@ -275,6 +275,10 @@ func propagateConfigParams(configs []*Config) {
|
|||||||
c.WriteTimeout = c.firstConfigInBlock.WriteTimeout
|
c.WriteTimeout = c.firstConfigInBlock.WriteTimeout
|
||||||
c.IdleTimeout = c.firstConfigInBlock.IdleTimeout
|
c.IdleTimeout = c.firstConfigInBlock.IdleTimeout
|
||||||
c.TsigSecret = c.firstConfigInBlock.TsigSecret
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user