moved ip log to api

v1.18.x
Baris Soner Usakli 11 years ago
parent 9069f9aedc
commit 7081c7dcc4

@ -30,6 +30,9 @@ var path = require('path'),
user.updateLastOnlineTime(req.user.uid);
}
// Log IP address
db.sortedSetAdd('ip:recent', +new Date(), req.ip || 'Unknown');
next();
});

@ -289,9 +289,6 @@ process.on('uncaughtException', function(err) {
// Disable framing
res.setHeader('X-Frame-Options', 'SAMEORIGIN');
// Log IP address
db.sortedSetAdd('ip:recent', +new Date(), req.ip || 'Unknown');
next();
});

Loading…
Cancel
Save