From 8b9691faca6f4e120f74b8db99a701b99659fc5f Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Fri, 2 Jun 2017 22:24:22 +1000 Subject: [PATCH] Only listen on localhost --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 5b09d06..be6f94f 100644 --- a/index.ts +++ b/index.ts @@ -28,7 +28,7 @@ app.get('/', function (req, res) { }); //replace with req.ip }); -app.listen(3000); +app.listen(3000, 'localhost'); function getIpInfo(ip: String): Promise.IThenable<{}> { return new Promise(function (resolve, reject) {