Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is something wrong with redis config #78

Open
francislyj opened this issue Jan 22, 2018 · 1 comment
Open

there is something wrong with redis config #78

francislyj opened this issue Jan 22, 2018 · 1 comment

Comments

@francislyj
Copy link

@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 as if(!settings.redis){ data.address = rinfo.address; data.port = rinfo.port; },self.me should also change from address : '127.0.0.1' to address : settings.address

@francislyj
Copy link
Author

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;
};`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant