Skip to content

Commit

Permalink
feat(redirects): get the proxied ip
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Dec 14, 2024
1 parent b155c59 commit 961d2fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ProcessRedirectController {
const visit = Visit.create({
id: VisitIdentifier.generate(),
createdAt: this.timeService.now(),
ipAddressRaw: request.ip(),
ipAddressRaw: request.header('CF-Connecting-IP', request.ip()),
referer: request.header('referer') ?? '',
redirectId: redirect.getIdentifier(),
});
Expand Down

0 comments on commit 961d2fe

Please sign in to comment.