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?

貢獻者指南

request.ip via x-forwarded-for should strip out ports · koajs/koa#827 | Good First Issue