mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 18:41:59 -07:00
Use ListenMulticastUDP for multicast sockets (potentially fixes #1113)
This commit is contained in:
parent
229b218203
commit
41b1bd2f05
@ -158,7 +158,7 @@ Mx: %d
|
||||
var results []IGD
|
||||
resultChannel := make(chan IGD, 8)
|
||||
|
||||
socket, err := net.ListenUDP("udp4", &net.UDPAddr{})
|
||||
socket, err := net.ListenMulticastUDP("udp4", nil, &net.UDPAddr{IP: ssdp.IP})
|
||||
if err != nil {
|
||||
l.Infoln(err)
|
||||
return results
|
||||
|
Loading…
Reference in New Issue
Block a user