Use standard port for ssdp discovery. Also try to fix CLI issue on windows

This commit is contained in:
Alex Ballas
2024-12-22 02:22:53 +02:00
parent 95006960a7
commit a4cd63f512
15 changed files with 160 additions and 67 deletions

View File

@@ -21,7 +21,7 @@ var (
func LoadSSDPservices(delay int) (map[string]string, error) {
// Reset device list every time we call this.
urlList := make(map[string]string)
list, err := ssdp.Search(ssdp.All, delay, "")
list, err := ssdp.Search(ssdp.All, delay, "239.255.255.250:1900")
if err != nil {
return nil, fmt.Errorf("LoadSSDPservices search error: %w", err)
}