From e279149832f9bc680fecd8de88eb9f091161538b Mon Sep 17 00:00:00 2001 From: timwu1 <49568333+timwu1@users.noreply.github.com> Date: Sun, 20 Feb 2022 12:26:54 -0800 Subject: [PATCH] Update apis.js Make APIS only listen to local address --- spider/apis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider/apis.js b/spider/apis.js index 8028dc2..23b651e 100644 --- a/spider/apis.js +++ b/spider/apis.js @@ -199,7 +199,7 @@ async function startServer() { port: 9306, multipleStatements: true }) - app.listen(process.env.PORT || 3000, async () => { + app.listen(process.env.PORT || 3000, 'localhost', async () => { console.log(new Date(), 'Server is istening...') if(process.send) { process.send('ready')