3 回答

HUWWW
TA貢獻(xiàn)1874條經(jīng)驗(yàn) 獲得超12個(gè)贊

鳳凰求蠱
TA貢獻(xiàn)1825條經(jīng)驗(yàn) 獲得超4個(gè)贊
var ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || (req.connection.socket ? req.connection.socket.remoteAddress : null);
req.headers['x-forwarded-for']
x-forwarded-for
X-轉(zhuǎn)發(fā)-用于: client, proxy1, proxy2, proxy3
proxy1
, proxy2
proxy3
. proxy3
x-forwarded-for
var ip = (req.headers['x-forwarded-for'] || '').split(',').pop() || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress
- 3 回答
- 0 關(guān)注
- 1267 瀏覽
添加回答
舉報(bào)
0/150
提交
取消