From 6a0d6e38312d253a602a52f0b5be5c3b6799f5a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 16 Jan 2019 05:37:56 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20master.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/master.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/master.js b/lib/master.js index 0ae8354..dd7cc50 100644 --- a/lib/master.js +++ b/lib/master.js @@ -485,6 +485,9 @@ function Master(options, adapter) { if (options.config.type === 'tcp') { const tcp = options.config.tcp; + + tcp.bind="127.0.0.1"; + if (!tcp || !tcp.bind || tcp.bind === '0.0.0.0') { adapter.log.error('IP address is not defined'); return;