mDNS (Avahi) unable to start caused by too long auto-config

TrueNAS Scale ElectricEel-24.10.2.3

My avahi daemon was not restarting, I killed it and then it didn’t want to start at all (which makes sense I guess)

Kept getting this error

avahi-daemon[3986518]: Missing assignment in /etc/avahi/avahi-daemon.conf:24: <xxxxxxxx, br-xxxxxxxxxxxx, br-xxxxxxxxxxxx, br>

So I went to the file and line 24 was actually

allow-interfaces=enp3s0, vlanX, vlanX, br0

Turns out the auto-generated denied interfaces are way too long for the daemon and that causes the crash
My solution was to replace values deny-interfaces with wildcards

deny-interfaces=wg*, lo, tun*, tap*, docker*, veth*, vnet*, macvtap*, ix*, tailscale*, br-*

And now avahi starts normally

My only issue now is that every time I restart SMB (not often at all so not a big pain rn), the file gets overwritten and avahi fails to start again.

Is there any way of changing the allow/deny interfaces in the mDNS? I wasn’t able to find any info on this

This is still happening in 25.04.2