google-home-notifier icon indicating copy to clipboard operation
google-home-notifier copied to clipboard

Do we really need mdns lib?

Open nabbl opened this issue 7 years ago • 2 comments

It really makes the install kind of problematic... and if you npm install again you would need to do the change in the browser.js file again.

Instead of trying to resolve the DNS like that the user should be able to just use the IP adress of the Google Home. Makes things a lot easier in my opinion.

nabbl avatar Aug 21 '17 11:08 nabbl

Agree!

noelportugal avatar Oct 11 '17 02:10 noelportugal

a workaround for linux users is to put the fix in the npm package.json file referencing the google-home-notifier.

The following seems to work for me:

  "scripts": {
    "postinstall": "sed -i -e 's/getaddrinfo()/getaddrinfo({families\\:\\[4\\]\\})/g' node_modules/mdns/lib/browser.js"
}

nouknouk avatar Jan 16 '18 11:01 nouknouk