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

X-Forwarded-For:[119.14.55.14,119.14.55.15,119.14.55.16, wil cause missing port in address! #8

Open
etsangsplk opened this issue Jul 26, 2018 · 0 comments

Comments

@etsangsplk
Copy link

xff/xff.go

Line 72 in 6c115e0

if sip, sport, err := net.SplitHostPort(r.RemoteAddr); err == nil && sip != "" {

I have input values of:
X-Forwarded-For:[119.14.55.14,119.14.55.15,119.14.55.16]
will cause missing port in address!
And the function silently drop the error

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

No branches or pull requests

1 participant