Client.ip is unusable due to proxies, look at forwarded-for
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
ac41432c7c
commit
0a7e1e0c03
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ sub vcl_recv {
|
|||
return(purge);
|
||||
}
|
||||
|
||||
if (req.url ~ "^/repo/" && !(client.ip ~ repoallowed)) {
|
||||
if (req.url ~ "^/repo/" && !(req.http.x-forwarded-for ~ repoallowed)) {
|
||||
return(synth(403, "Access denied."));
|
||||
}
|
||||
if (req.url ~ "^/mash/") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue