Closed jonathanyip closed 1 month ago
Thanks for the find. Honestly this should likely be the default. I had to remove avahi as the default option recently, because it was failing for a lot of people. I suspect this was the issue: it was mounted correctly but communicating with the socket was not allowed.
While running the Avahi daemon on the host and scrypted in a docker container, I noticed that the homekit plugin would fail with the following exception:
Debugging the homebridge lib, I found out that it was caused by this error:
I found this snippet in the homebridge docs (https://github.com/homebridge/homebridge/wiki/mDNS-Options#avahi-linux-and-docker)
After adding those lines to my own docker-compose file and restarting, it seemed to work.
This PR adds those lines to the docker-compose.yml and installation script, when the user wants to use host avahi