mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 14:53:00 +03:00
[PR #483] [CLOSED] fix: ensure to use correct forwarded ip #780
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/483
Author: @kmendell
Created: 4/25/2025
Status: ❌ Closed
Base:
main← Head:fix/use-client-ip📝 Commits (2)
36e1e64fix: ensure to use correct forwarded ip4ad1170Merge branch 'main' into fix/use-client-ip📊 Changes
2 files changed (+45 additions, -0 deletions)
View changed files
📝
backend/internal/bootstrap/router_bootstrap.go(+1 -0)➕
backend/internal/middleware/trust_proxy.go(+44 -0)📄 Description
GIN doesnt seem to repect the X-Client-IP or Forwarded IP if the built in caddy is not used. This logic does not work yet , but still looking into it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.