mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
proxy: Parse error if property is unknown
This commit is contained in:
parent
e043bbdd62
commit
a585379bbb
1 changed files with 2 additions and 0 deletions
|
@ -109,6 +109,8 @@ func NewStaticUpstreams(c parse.Dispenser) ([]Upstream, error) {
|
||||||
return upstreams, c.ArgErr()
|
return upstreams, c.ArgErr()
|
||||||
}
|
}
|
||||||
upstream.WithoutPathPrefix = c.Val()
|
upstream.WithoutPathPrefix = c.Val()
|
||||||
|
default:
|
||||||
|
return upstreams, c.Errf("unknown property '%s'", c.Val())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue