D
Deno

help

remoteAddr returning localhost on Deno Deploy

Kkeving9/21/2023
I saw this thread (https://discord.com/channels/684898665143206084/1055631150787334184) about getting the IP of the requester, but I'm not getting the value I expected. I tried using ctx.remoteAddr with Fresh on Deno Deploy and I get { transport: "tcp", hostname: "localhost", port: 1234 } instead of an IP address – is there something I need to configure to get "real" values?
IioB9/21/2023
@marvinh. any ideas? I feel like I remember there being an open issue about this.
Kkeving9/25/2023
@lino-levan @marvinh. It looks like this is the open issue: https://github.com/denoland/fresh/issues/1585
GitHub
[Bug Report] Can't get client's Real IP / remoteAddr after upgradin...
Hi, after I updated fresh to v1.3.0 and after. I cannot get the client's real IP by ctx.remoteAddr method. This is the test code of _middleware.ts interface State { ip: string; } export async f...
Mmarvinh.9/25/2023
apologies, I haven't had time yet to look at that
Kkeving9/25/2023
No worries, just glad it's on the radar

Looking for more? Join the community!