I tried this patch with the new upstream release 1.3.3, see https://salsa.debian.org/bap/minidlna.git branch master and it didn't really work. I have a computer connected to WiFi and also a direct ethernet cable connection to a TV, and the TV cable can bounce up and down, and this patch made things not work. When I did "systemctl stop minidlna.socket" it started working again. This seemed replicable. So, I reverted the patch from my fork of the repo.
This is a deep enough issue that any fix, or additional functionality of this sort, should probably go through upstream rather than just be a Debian patch.