mirror of
https://github.com/italicsjenga/handlebars-ipinfo.git
synced 2024-11-24 05:21:29 +11:00
More debugging
This commit is contained in:
parent
cba7d0dd38
commit
ac494ec0e3
1
index.ts
1
index.ts
|
@ -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; },
|
||||||
|
|
Loading…
Reference in a new issue