📜  express 获取远程 ip - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:34.500000             🧑  作者: Mango

代码示例1
var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress;