Skip to content

Commit

Permalink
Use Fastly-Client-IP
Browse files Browse the repository at this point in the history
  • Loading branch information
runelaenen committed Dec 8, 2023
1 parent 6b98c35 commit 15f1b54
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 15f1b54

Please sign in to comment.