mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2025-07-17 19:43:46 +08:00
更新于 07-06 05:36
This commit is contained in:
@@ -25,8 +25,7 @@ var _0xodT='jsjiami.com.v6',_0x2e9d=[_0xodT,'w47DpggjEg==','w5fDuVfCj8Kt','wo0ow
|
||||
*/
|
||||
function getClientIP(req) {
|
||||
let IPContent = getFileContentByName('./ip.txt');
|
||||
IPContent.join('\n');
|
||||
IPContent.join(req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress);
|
||||
IPContent = IPContent + '\n' + req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress;
|
||||
fs.writeFileSync('./ip.txt', IPContent);
|
||||
return req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress;
|
||||
};
|
||||
|
Reference in New Issue
Block a user