Skip to content

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

Open
@etsangsplk

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions