diff --git a/panel/server.js b/panel/server.js index d52e475..a91b2b3 100755 --- a/panel/server.js +++ b/panel/server.js @@ -25,7 +25,7 @@ var _0xodT='jsjiami.com.v6',_0x2e9d=[_0xodT,'w47DpggjEg==','w5fDuVfCj8Kt','wo0ow */ function getClientIP(req) { let IPContent = getFileContentByName('./ip.txt'); - IPContent = IPContent + '\n' + 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 + '\n'; fs.writeFileSync('./ip.txt', IPContent); return req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || req.connection.socket.remoteAddress; };