Wouldn't it be better to compare the Host header against the host and port entry from the config variable presentation_url to protect against DNS rebinding ?
minidlna web interface no longer works in 1.3.1