-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Use built-in graceful mode, can not read client ip from "X-Forwarded-For" header #2693
Comments
Hey man |
Closed
fixed by #2692 |
but when built-in graceful mode, won't use any functions that start with Run, so how to solve this issue? |
to
// SetTrustedProxies set Engine.TrustedProxies
func (engine *Engine) SetTrustedProxies(trustedProxies []string) error {
engine.TrustedProxies = trustedProxies
return engine.parseTrustedProxies()
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use built-in graceful mode, can not read client ip from "X-Forwarded-For" header.
How to reproduce
set The engine.TrustedProxies already set to []string{"127.0.0.0/8", "192.168.0.0/16", "172.16.0.0/12", "10.0.0.0/8"}
but client ip is not read from "X-Forwarded-For".
Expectations
Actual result
Environment
The text was updated successfully, but these errors were encountered: