Defaulting Interval

This commit is contained in:
Rob Emery 2025-01-01 20:33:49 +00:00
parent 12600792b1
commit b7617f63e9

View File

@ -55,6 +55,7 @@ type SSDPServer struct {
func New(ds model.DataStore, broker events.Broker) *DLNAServer {
s := &DLNAServer{ds: ds, broker: broker, ssdp: SSDPServer{}}
s.ssdp.Interfaces = listInterfaces()
s.ssdp.AnnounceInterval = time.Duration(30) * time.Second
return s
}