Skip to content

Commit

Permalink
Merge pull request #72 from runelaenen/fix/fastly-ip
Browse files Browse the repository at this point in the history
Use Fastly-Client-IP
  • Loading branch information
shyim authored Dec 8, 2023
2 parents 6b98c35 + 15f1b54 commit 967042e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shopware/fastly-meta/6.4/config/fastly/recv/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ set req.url = querystring.sort(req.url);

# Make sure that the client ip is forward to the client.
if (req.http.x-forwarded-for) {
set req.http.X-Forwarded-For = req.http.X-Forwarded-For + ", " + client.ip;
set req.http.X-Forwarded-For = req.http.X-Forwarded-For + ", " + req.http.Fastly-Client-IP;
} else {
set req.http.X-Forwarded-For = client.ip;
set req.http.X-Forwarded-For = req.http.Fastly-Client-IP;
}

# Don't cache Authenticate & Authorization
Expand Down

0 comments on commit 967042e

Please sign in to comment.