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

@etsangsplk

Description

@etsangsplk

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

Metadata

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