Add support for fallthrough to the grpc plugin (#7359)

Fixes: https://github.com/coredns/coredns/issues/7358

Signed-off-by: Blake Barnett <bbarnett@groq.com>
This commit is contained in:
blakebarnett
2025-06-06 04:58:17 -07:00
committed by GitHub
parent 0eb5542035
commit 6cba588951
5 changed files with 118 additions and 1 deletions

View File

@@ -141,6 +141,8 @@ func parseBlock(c *caddy.Controller, g *GRPC) error {
default:
return c.Errf("unknown policy '%s'", x)
}
case "fallthrough":
g.Fall.SetZonesFromArgs(c.RemainingArgs())
default:
if c.Val() != "}" {
return c.Errf("unknown property '%s'", c.Val())