node-cluster-socket.io icon indicating copy to clipboard operation
node-cluster-socket.io copied to clipboard

Issue with IPV6 addresses preceding IPV4 on Linux

Open zpappa opened this issue 9 years ago • 0 comments

Not sure if this affects other systems but I noticed an issue when trying this out on Fedora 23.

connection.remoteAddress from net.createServer includes what appears to be an IPV6 address preceding the IPV4 address. Example: ::ffff:127.0.0.1

This can be remedied by simply using a better conditional inside worker_index

if (!isNaN(ip[i])) { s += ip[i]; } I have the edit for the readme.md available in a fork.

zpappa avatar Apr 18 '16 23:04 zpappa