maxinminax / node-mihome

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
121 stars 35 forks source link

protocol-auara.js line 48 errors if more than 1 IP address on interface #47

Open DeadEnded opened 2 years ago

DeadEnded commented 2 years ago

Recently after restarting Node-Red my system would not come up. I have explain the findings here, so I won't write it all out again.

Summary - it appears if you have more than one IP address on your system, protocol-auara.js errors on line 48 when trying to setup multicast_address. I was testing something on my system forgot to remove a second IP I had put in and this caused the failure. This is probably an edge case - but wanted to share my findings in case it helps anyone else - or can lead to a code fix to prevent such issues.

Thanks, DeadEnd