From 00bd39bc122e13c6d5578e332c645c685bc3f842 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 24 Aug 2011 15:52:53 +0200 Subject: [PATCH] Use RawSetId here --- _examples/funkensturm/config_rproxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_examples/funkensturm/config_rproxy.go b/_examples/funkensturm/config_rproxy.go index 2bd575a1..98b97492 100644 --- a/_examples/funkensturm/config_rproxy.go +++ b/_examples/funkensturm/config_rproxy.go @@ -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 }