koajs/koa

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

Aperta

#827 aperta il 4 ott 2016

 (12 commenti) (0 reazioni) (0 assegnatari)JavaScript (3215 fork)batch import
help wanted

Metriche repository

Star
 (35.713 stelle)
Metriche merge PR
 (Merge medio 9h 19m) (2 PR mergiate in 30 g)

Descrizione

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?

Guida contributor