Skip to content

fix: replace deprecated middleware.RealIP api with middleware.ClientIPFromRemoteAddr - #20

Open
peterintech wants to merge 2 commits into
sikozonpc:mainfrom
peterintech:fix/deprecated_api
Open

peterintech wants to merge 2 commits into
sikozonpc:mainfrom
peterintech:fix/deprecated_api

Conversation

@peterintech

Copy link
Copy Markdown

Go chi docs suggested the RealIP api is prone to attacks so instead we the ClientIPFromRemoteAddr api

use https://pkg.go.dev/github.com/go-chi/httprate#section-readme

…PFromRemoteAddr api as suggested by chi docs
Copilot AI lite review requested due to automatic review settings August 29, 2026 15:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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 this pull request may close these issues.

2 participants