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)
|
o = cache.lookup(m)
|
||||||
if o != nil {
|
if o != nil {
|
||||||
// octet 1 and 2 contain the Id, set the one for the current pkt
|
// octet 1 and 2 contain the Id, set the one for the current pkt
|
||||||
o[0] = byte(m.MsgHdr.Id >> 8)
|
dns.RawSetId(o, 0, m.MsgHdr.Id)
|
||||||
o[1] = byte(m.MsgHdr.Id)
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue