svelte-api-keys icon indicating copy to clipboard operation
svelte-api-keys copied to clipboard

Overridable fn to get client IP address

Open CaptainCodeman opened this issue 1 year ago • 1 comments

e.g. for cloudflare, when it would be in a http header (True-Client-IP?) instead of using SvelteKit's event.getClientAddress()

CaptainCodeman avatar Apr 12 '24 16:04 CaptainCodeman

I wonder if this is required, or comes down to a configuration issue? The example given at https://kit.svelte.dev/docs/adapter-node#environment-variables-addressheader-and-xffdepth is for True-Client-IP so it looks like SvelteKit / the adapter, should be handling this.

CaptainCodeman avatar Apr 12 '24 16:04 CaptainCodeman