More debugging

This commit is contained in:
Alex Janka 2017-06-02 22:36:20 +10:00
parent cba7d0dd38
commit ac494ec0e3

View file

@ -17,6 +17,7 @@ app.enable('trust-proxy');
app.get('/', function (req, res) { app.get('/', function (req, res) {
getIpInfo(req.ips[0]).done(function (geoinfo: IPGeoJson) { getIpInfo(req.ips[0]).done(function (geoinfo: IPGeoJson) {
console.log("ip: " + geoinfo.ip); console.log("ip: " + geoinfo.ip);
console.log("ips[0]: " + req.ips[0]);
res.render('home', { res.render('home', {
helpers: { helpers: {
ip: function () { return geoinfo.ip; }, ip: function () { return geoinfo.ip; },