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

Krakend Rate Limit to Mux Based routers #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

krishnaeverestengineering

No description provided.

@krishnaeverestengineering krishnaeverestengineering changed the title Krakend Rate Limit to Gorilla router Krakend Rate Limit to Mux Based routers Feb 11, 2020

// IPTokenExtractor extracts the IP of the request
func IPTokenExtractor(c http.ResponseWriter, r *http.Request) string {
return r.RemoteAddr
Copy link
Member

Choose a reason for hiding this comment

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

this token extractor implementation will return the wrong IP if the gateway is placed behind a load balancer or reverse proxy.

check this commit for more details: f82ede8

@kpacha kpacha added this to the 1.3.0 milestone Feb 8, 2021
@kpacha
Copy link
Member

kpacha commented Feb 8, 2021

Thanks for the contribution and sorry for the huge delay in processing it. I don't know how I missed it!

If you are no longer willing to move on with this (I'd totally understand it), I myself will add the minor modifications the code requires to be merged

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.

None yet

2 participants