更新 master.js

This commit is contained in:
2019-01-16 05:50:36 +00:00
parent c451c36934
commit 859ff58733

View File

@@ -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;