mirror of
https://github.com/italicsjenga/handlebars-ipinfo.git
synced 2024-11-24 05:21:29 +11:00
Switch to req.ips
This commit is contained in:
parent
8a86435408
commit
cba7d0dd38
2
index.ts
2
index.ts
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue