From 859ff587337ef2115e997fc8f99194b1fe3608a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 16 Jan 2019 05:50:36 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/master.js b/lib/master.js index dd7cc50..55115c6 100644 --- a/lib/master.js +++ b/lib/master.js @@ -484,10 +484,10 @@ function Master(options, adapter) { adapter.setState('info.connection', false, true); if (options.config.type === 'tcp') { + + options.config.tcp.bind = "127.0.0.1" ; 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;