Skip to content
Permalink
Browse files

Real IP ?

  • Loading branch information...
Depado committed Dec 4, 2014
1 parent aa5dfcc commit 8464e372daf36c82448024aa12ef428b6cad796a
Showing with 2 additions and 1 deletion.
  1. +2 −1 app.js
3 app.js
@@ -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');
});

0 comments on commit 8464e37

Please sign in to comment.
You can’t perform that action at this time.