mirror of
https://github.com/miekg/dns.git
synced 2025-10-17 12:51:00 +02:00
Use RawSetId here
This commit is contained in:
parent
6eabda897c
commit
00bd39bc12
@ -91,8 +91,7 @@ func checkcache(m *dns.Msg) (o []byte) {
|
||||
o = cache.lookup(m)
|
||||
if o != nil {
|
||||
// octet 1 and 2 contain the Id, set the one for the current pkt
|
||||
o[0] = byte(m.MsgHdr.Id >> 8)
|
||||
o[1] = byte(m.MsgHdr.Id)
|
||||
dns.RawSetId(o, 0, m.MsgHdr.Id)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user