Skip to content

Commit c3e856f

Browse files
authored
Merge 96cf178 into 8b18d69
2 parents 8b18d69 + 96cf178 commit c3e856f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/templates/edge/runtime.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const handler = async (req: Request, context: Context) => {
4747
},
4848
url: url.toString(),
4949
method: req.method,
50-
ip: req.headers.get('x-nf-client-address') ?? undefined,
50+
ip: context.ip,
5151
body: req.body ?? undefined,
5252
}
5353

0 commit comments

Comments
 (0)