From 2793698dbb36a0944ad5ba8ad6545e9a3492c439 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 22 Jul 2020 18:07:55 +0200 Subject: [PATCH] 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. --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index ee82fea..690a035 100644 --- a/config/config.go +++ b/config/config.go @@ -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 {