mirror of https://github.com/caddyserver/caddy.git
httpcaddyfile: Fix `metrics` global option parsing (#5126)
This commit is contained in:
parent
498f32bab9
commit
d46ba2e27f
|
@ -180,7 +180,7 @@ func unmarshalCaddyfileServerOptions(d *caddyfile.Dispenser) (any, error) {
|
|||
if d.NextArg() {
|
||||
return nil, d.ArgErr()
|
||||
}
|
||||
if d.NextBlock(0) {
|
||||
if nesting := d.Nesting(); d.NextBlock(nesting) {
|
||||
return nil, d.ArgErr()
|
||||
}
|
||||
serverOpts.Metrics = new(caddyhttp.Metrics)
|
||||
|
|
Loading…
Reference in New Issue