Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Real IP ?
Browse files Browse the repository at this point in the history
  • Loading branch information
Depado committed Dec 4, 2014
1 parent aa5dfcc commit 8464e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Expand Up @@ -118,9 +118,10 @@ io.sockets.on('connection', function (socket) {
app.get('/', function(req, res) {
piwik.track({
url: baseUrl + req.url,
action_name: 'Unicorn HomePage',
action_name: req.url,
ua: req.header('User-Agent'),
lang: req.header('Accept-Language'),
cip: req.headers['x-forwarded-for'] || req.connection.remoteAddress;
});
res.render('index.html');
});
Expand Down

0 comments on commit 8464e37

Please sign in to comment.