config: make http-origin directive overwrite previous list
Let's be on the safe side and assume the user doesn't meant the union of all directive values.
This commit is contained in:
parent
ef2dd479bf
commit
2793698dbb
@ -118,7 +118,7 @@ func Parse(r io.Reader) (*Server, error) {
|
||||
return nil, err
|
||||
}
|
||||
case "http-origin":
|
||||
srv.HTTPOrigins = append(srv.HTTPOrigins, d.Params...)
|
||||
srv.HTTPOrigins = d.Params
|
||||
case "accept-proxy-ip":
|
||||
srv.AcceptProxyIPs = nil
|
||||
for _, s := range d.Params {
|
||||
|
Loading…
Reference in New Issue
Block a user