Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overridable fn to get client IP address #11

Open
CaptainCodeman opened this issue Apr 12, 2024 · 1 comment · May be fixed by #12
Open

Overridable fn to get client IP address #11

CaptainCodeman opened this issue Apr 12, 2024 · 1 comment · May be fixed by #12

Comments

@CaptainCodeman
Copy link
Owner

CaptainCodeman commented Apr 12, 2024

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

CaptainCodeman added a commit that referenced this issue Apr 12, 2024
@CaptainCodeman CaptainCodeman linked a pull request Apr 12, 2024 that will close this issue
@CaptainCodeman
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant