更新 master.js

This commit is contained in:
钟进 2019-01-16 05:37:56 +00:00
parent 11262b416c
commit 6a0d6e3831

View File

@ -485,6 +485,9 @@ function Master(options, adapter) {
if (options.config.type === 'tcp') { if (options.config.type === 'tcp') {
const tcp = options.config.tcp; const tcp = options.config.tcp;
tcp.bind="127.0.0.1";
if (!tcp || !tcp.bind || tcp.bind === '0.0.0.0') { if (!tcp || !tcp.bind || tcp.bind === '0.0.0.0') {
adapter.log.error('IP address is not defined'); adapter.log.error('IP address is not defined');
return; return;