koajs/koa

request.ip via x-forwarded-for should strip out ports

Open

#827 opened on Oct 4, 2016

View on GitHub
 (12 comments) (0 reactions) (0 assignees)JavaScript (3,215 forks)batch import
help wanted

Repository metrics

Stars
 (35,713 stars)
PR merge metrics
 (Avg merge 9h 19m) (2 merged PRs in 30d)

Description

on azure (yes, i know), ports are also being sent as well as the ip in x-forwarded-for:

'x-forwarded-for': '23.243.1.1:38242'

request.ip should not return the port section. aye or nay?

Contributor guide