mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 04:46:24 +02:00
remove deprecated whitelist flag and struct field
This commit is contained in:
parent
5a07762971
commit
a5297ae319
3 changed files with 4 additions and 12 deletions
|
|
@ -43,7 +43,6 @@ const defaultMemorySize = 100
|
|||
|
||||
var addr = flag.String("addr", "localhost:8080", "TCP address to listen on")
|
||||
var allowHosts = flag.String("allowHosts", "", "comma separated list of allowed remote hosts")
|
||||
var whitelist = flag.String("whitelist", "", "deprecated. use 'allowHosts' instead")
|
||||
var denyHosts = flag.String("denyHosts", "", "comma separated list of denied remote hosts")
|
||||
var referrers = flag.String("referrers", "", "comma separated list of allowed referring hosts")
|
||||
var baseURL = flag.String("baseURL", "", "default base URL for relative remote URLs")
|
||||
|
|
@ -62,10 +61,6 @@ func init() {
|
|||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
if *allowHosts == "" {
|
||||
// backwards compatible with old naming of the flag
|
||||
*allowHosts = *whitelist
|
||||
}
|
||||
|
||||
p := imageproxy.NewProxy(nil, cache.Cache)
|
||||
if *allowHosts != "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue