From 9df50248568c47f4ab39ff5c77b1edcce3c29fc8 Mon Sep 17 00:00:00 2001 From: wiz Date: Fri, 23 Aug 2019 22:27:52 +0900 Subject: [PATCH] Modify backend to only bind to 127.0.0.1 --- backend/src/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 4c31621d0..c0a327230 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -50,8 +50,12 @@ class MempoolSpace { statistics.startStatistics(); fiatConversion.startService(); - this.server.listen(8999, () => { - console.log(`Server started on port 8999 :)`); + let opts = { + host: "127.0.0.1", + port: 8999 + }; + this.server.listen(opts, () => { + console.log(`Server started on ${opts.host}:${opts.port})`); }); }