koajs/koa

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

Open

#827 opened on 2016年10月4日

GitHub で見る
 (12 comments) (0 reactions) (0 assignees)JavaScript (3,215 forks)batch import
help wanted

Repository metrics

Stars
 (35,713 stars)
PR merge metrics
 (平均マージ 9h 19m) (30d で 2 merged PRs)

説明

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?

コントリビューターガイド