mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-13 00:36:28 +00:00
Use WriteToUDP rather than WriteMsgUDP (fixes #4)
This commit is contained in:
parent
175669c61e
commit
bfba18fdcb
@ -289,7 +289,7 @@ func handleQueryV2(db *leveldb.DB, conn *net.UDPConn, addr *net.UDPAddr, buf []b
|
|||||||
}
|
}
|
||||||
|
|
||||||
tb := ann.MarshalXDR()
|
tb := ann.MarshalXDR()
|
||||||
_, _, err = conn.WriteMsgUDP(tb, nil, addr)
|
_, err = conn.WriteToUDP(tb, addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("QueryV2 response write:", err)
|
log.Println("QueryV2 response write:", err)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user