Use WriteToUDP rather than WriteMsgUDP (fixes #4)

This commit is contained in:
Jakob Borg 2014-10-07 10:50:09 +02:00
parent 175669c61e
commit bfba18fdcb
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ func handleQueryV2(db *leveldb.DB, conn *net.UDPConn, addr *net.UDPAddr, buf []b
}
tb := ann.MarshalXDR()
_, _, err = conn.WriteMsgUDP(tb, nil, addr)
_, err = conn.WriteToUDP(tb, addr)
if err != nil {
log.Println("QueryV2 response write:", err)
return nil