mirror of
https://github.com/octoleo/syncthing.git
synced 2025-04-03 08:11:50 +00:00
Merge pull request #1161 from AudriusButkevicius/upnp2
Use ListenMulticastUDP for multicast sockets (potentially fixes #1113)
This commit is contained in:
commit
e6318bddf3
@ -158,7 +158,7 @@ Mx: %d
|
|||||||
var results []IGD
|
var results []IGD
|
||||||
resultChannel := make(chan IGD, 8)
|
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 {
|
if err != nil {
|
||||||
l.Infoln(err)
|
l.Infoln(err)
|
||||||
return results
|
return results
|
||||||
|
Loading…
x
Reference in New Issue
Block a user