Revert "add some iface fun and don't start dlna on loopback and tunnels"

This reverts commit 02b749a4c4.
This commit is contained in:
nikk gitanes
2021-09-13 19:25:32 +03:00
parent 8cd867c92c
commit 46bd8d0a8d
5 changed files with 4 additions and 182 deletions

View File

@@ -115,7 +115,7 @@ func getTorrent(path, host string) (ret []interface{}) {
func getTorrentMeta(path, host string) (ret interface{}) {
if path == "/" {
if path=="/" {
rootObj := upnpav.Object{
ID: "0",
ParentID: "-1",
@@ -143,7 +143,7 @@ func getTorrentMeta(path, host string) (ret interface{}) {
meta := upnpav.Container{Object: trObj}
return meta
}
// find torrent without load
torrs := torr.ListTorrent()
var torr *torr.Torrent