mirror of
https://github.com/caddyserver/caddy.git
synced 2025-02-21 07:41:39 +08:00
proxy: Parse error if property is unknown
This commit is contained in:
parent
e043bbdd62
commit
a585379bbb
@ -109,6 +109,8 @@ func NewStaticUpstreams(c parse.Dispenser) ([]Upstream, error) {
|
||||
return upstreams, c.ArgErr()
|
||||
}
|
||||
upstream.WithoutPathPrefix = c.Val()
|
||||
default:
|
||||
return upstreams, c.Errf("unknown property '%s'", c.Val())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user