Open francislyj opened 6 years ago
the getLocalIp should be change below: `var getLocalIp = function () {
var ifaces = os.networkInterfaces();
var localIp = "127.0.0.1";
Object.keys(ifaces).forEach(function (ifname) {
ifaces[ifname].forEach(function (iface) {
if ('IPv4' !== iface.family || iface.internal !== false) {
return;
}
localIp = iface.address;
});
});
return localIp;
};`
@dashersw redis.js file
that.emit('message', message, { address: '0.0.0.0', port: port});
will causes the source package ip and port has error occurred. So the code needs to be improved evaluateHello function in the discover.js file ,such asif(!settings.redis){ data.address = rinfo.address; data.port = rinfo.port; }
,self.me should also change fromaddress : '127.0.0.1'
toaddress : settings.address