plugin/forward: Forward NODATA responses to Next handler (#8065)

This commit is contained in:
Jöran Malek
2026-05-27 02:15:46 +02:00
committed by GitHub
parent 17142359e0
commit eb49f402cc
4 changed files with 109 additions and 0 deletions

View File

@@ -395,6 +395,11 @@ func parseBlock(c *caddy.Controller, f *Forward) error {
f.nextAlternateRcodes = append(f.nextAlternateRcodes, rc)
}
case "next_on_nodata":
if c.NextArg() {
return c.ArgErr()
}
f.nextOnNodata = true
case "failfast_all_unhealthy_upstreams":
args := c.RemainingArgs()
if len(args) != 0 {