Bugs

Client IP Ignored, Server Location Returned

Anonymous
6mo agoCompleted

Hey, We're passing the ip address of the client in our backend events but the location is still our server location, it's like the header is ignored? the user agent header is at least set correctly. am i doing it wrong?

``` const clientIp = await getIP(c) const userAgent = c.req.header("user-agent") || undefined

const extraHeaders: Record<string, string> = {} if (clientIp) extraHeaders["x-client-ip"] = clientIp if (userAgent) extraHeaders["user-agent"] = userAgent

const op = createOpenPanel(extraHeaders) ```

1 comment

  1. Carl-Gerhard Lindesvärd marked this as Completed6mo ago
  2. Sorry, this is correct. Since we moved to cloudflare (orange cloud) this got messed up. We have deployed a fix which should resolve this.