Switch to req.ips

This commit is contained in:
Alex Janka 2017-06-02 22:35:03 +10:00
parent 8a86435408
commit cba7d0dd38

View file

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