Changeset 371 in code for trunk/config/config.go


Ignore:
Timestamp:
Jul 22, 2020, 4:07:55 PM (5 years ago)
Author:
contact
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/config.go

    r370 r371  
    119119                        }
    120120                case "http-origin":
    121                         srv.HTTPOrigins = append(srv.HTTPOrigins, d.Params...)
     121                        srv.HTTPOrigins = d.Params
    122122                case "accept-proxy-ip":
    123123                        srv.AcceptProxyIPs = nil
Note: See TracChangeset for help on using the changeset viewer.