Skip to content

Commit

Permalink
feat: get client IP from Context object rather than header
Browse files Browse the repository at this point in the history
  • Loading branch information
ericapisani committed Jul 12, 2022
1 parent f737122 commit 10fa770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/adapter-netlify/src/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function handler(request, context) {
return server.respond(request, {
platform: { context },
getClientAddress() {
return request.headers.get('x-nf-client-connection-ip');
return context.ip;
}
});
}
Expand Down

0 comments on commit 10fa770

Please sign in to comment.