Skip to content
Permalink
Browse files

Real IP ? 3

  • Loading branch information...
Depado committed Dec 4, 2014
1 parent 8c73965 commit 5a6e57ac9395414b8c038cf2817e5b69251b2c7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.js
2 app.js
@@ -24,6 +24,7 @@ var baseUrl = 'http://unicorn.depado.eu';
app.use(compress());
app.use(express.static(__dirname + '/bower_components'));
app.use('/custom', express.static(__dirname + '/static'));
app.enable('trust proxy');

var usernames = {};
var anon_users = 0;
@@ -121,7 +122,6 @@ app.get('/', function(req, res) {
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 5a6e57a

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