mirror of
https://github.com/italicsjenga/handlebars-ipinfo.git
synced 2024-11-24 05:21:29 +11:00
Only listen on localhost
This commit is contained in:
parent
aa247e9398
commit
8b9691faca
2
index.ts
2
index.ts
|
@ -28,7 +28,7 @@ app.get('/', function (req, res) {
|
||||||
}); //replace with req.ip
|
}); //replace with req.ip
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(3000);
|
app.listen(3000, 'localhost');
|
||||||
|
|
||||||
function getIpInfo(ip: String): Promise.IThenable<{}> {
|
function getIpInfo(ip: String): Promise.IThenable<{}> {
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
|
Loading…
Reference in a new issue