koajs/koa

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

Open

#827 ouverte le 4 oct. 2016

Voir sur GitHub
 (12 commentaires) (0 réactions) (0 assignés)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?

Guide contributeur