diversario / node-ssdp

node.js SSDP client/server.
MIT License
274 stars 118 forks source link

Creating client always ends in "No sockets available, cannot start." #115

Open marcmenn opened 2 years ago

marcmenn commented 2 years ago

https://github.com/diversario/node-ssdp/blob/0756bd0eff034f47cd23b7303f85abb22dc7d6b1/lib/index.js#L165

Node 18 changed type of family to number, so this will always result in Error No sockets available, cannot start.

Possible fix: https://github.com/SuiOni/node-ssdp/commit/532022d170a568397d7db0fbbb306fbac1d8376e

Nosferatu31 commented 1 year ago

Is this fixed already?

ghost commented 1 year ago

This is fixed in Node v18.4, see https://github.com/nodejs/node/blob/v18.4.0/lib/os.js