fix: reject unknown trace and dnstap block options (#8120)

This commit is contained in:
Ville Vesilehto
2026-05-22 02:06:25 +03:00
committed by GitHub
parent 1fbc686758
commit d9c6b9b8b4
4 changed files with 6 additions and 0 deletions

View File

@@ -129,6 +129,8 @@ func traceParse(c *caddy.Controller) (*trace, error) {
if err != nil {
return nil, err
}
default:
return nil, c.Errf("unknown property '%s'", c.Val())
}
}
}