mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-06-02 07:45:13 +02:00
Allow allowing/blocks hosts by IP range (#236)
This commit is contained in:
parent
3c7d08f311
commit
f91e9cb508
3 changed files with 16 additions and 2 deletions
|
|
@ -172,6 +172,7 @@ func TestAllowed(t *testing.T) {
|
|||
{"http://test/image", emptyOptions, nil, []string{"test"}, nil, nil, nil, false},
|
||||
{"http://test/image", emptyOptions, []string{"test"}, []string{"test"}, nil, nil, nil, false},
|
||||
{"http://test/image", Options{Signature: "NDx5zZHx7QfE8E-ijowRreq6CJJBZjwiRfOVk_mkfQQ="}, nil, []string{"test"}, nil, key, nil, false},
|
||||
{"http://127.0.0.1/image", emptyOptions, nil, []string{"127.0.0.0/8"}, nil, nil, nil, false},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue