koajs/koa

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

Open

#827 创建于 2016年10月4日

在 GitHub 查看
 (12 评论) (0 反应) (0 负责人)JavaScript (35,713 star) (3,215 fork)batch import
help wanted

描述

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?

贡献者指南