diff --git a/cmd/serve/dlna/dlna_util.go b/cmd/serve/dlna/dlna_util.go index b5d2b4127..45c6087cc 100644 --- a/cmd/serve/dlna/dlna_util.go +++ b/cmd/serve/dlna/dlna_util.go @@ -47,10 +47,9 @@ func listInterfaces() []net.Interface { var active []net.Interface for _, intf := range ifs { - if intf.Flags&net.FlagUp == 0 || intf.MTU <= 0 { - continue + if intf.Flags&net.FlagUp != 0 && intf.Flags&net.FlagMulticast != 0 && intf.MTU > 0 { + active = append(active, intf) } - active = append(active, intf) } return active }