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 (35,713 stars) (3,215 forks)batch import
help wanted

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