This commit is contained in:
风扇滑翔翼 2025-03-19 04:36:27 +00:00 committed by GitHub
parent d639ccc627
commit b6a3e0718f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,7 +147,7 @@ func (s *ClassicNameServer) HandleResponse(ctx context.Context, packet *udp_prot
newMsg.ID = s.newReqID()
newReq.msg = &newMsg
s.addPendingRequest(&newReq)
b, _ := dns.PackMessage(req.msg)
b, _ := dns.PackMessage(newReq.msg)
s.udpServer.Dispatch(toDnsContext(newReq.ctx, s.address.String()), *s.address, b)
return
}