avahi: remove disallow-other-stacks=yes

This was originally added because SO_REUSEPORT was not available on older kernels

With this setting, avahi-daemon does not use either SO_REUSEADDR or SO_REUSEPORT, which means that other mDNS applications cannot access the multicast udp port 5353 at the same time. This includes mDNS clients which are simply trying to discover other services on the network. One such client exists in a PVR add-on I am writing for Kodi which currently fails in network discovery when run on LibreELEC.

See also https://github.com/grandcat/zeroconf/issues/63

(cherry picked from commit 733eb8ff1458d7b2f2a06402ea5c6516209a313f)
This commit is contained in:
Aman Gupta 2019-10-08 13:56:10 -07:00
parent c97f38e942
commit b6e9a63684

View File

@ -56,8 +56,6 @@ pre_configure_target() {
}
post_makeinstall_target() {
# for some reason avai can fail to start see: http://forums.gentoo.org/viewtopic-p-7322172.html#7322172
sed -e "s,^.*disallow-other-stacks=.*$,disallow-other-stacks=yes,g" -i $INSTALL/etc/avahi/avahi-daemon.conf
# disable wide-area
sed -e "s,^.*enable-wide-area=.*$,enable-wide-area=no,g" -i $INSTALL/etc/avahi/avahi-daemon.conf
# publish-hinfo