m.Size isnt used
This commit is contained in:
parent
9977bf87c4
commit
e66c2a1324
|
@ -101,7 +101,6 @@ func (w *reply) receive() (*Msg, error) {
|
|||
return nil, err
|
||||
}
|
||||
w.rtt = time.Since(w.t)
|
||||
m.Size = n
|
||||
if t := m.IsTsig(); t != nil {
|
||||
secret := t.Hdr.Name
|
||||
if _, ok := w.client.TsigSecret[secret]; !ok {
|
||||
|
|
1
msg.go
1
msg.go
|
@ -70,7 +70,6 @@ type MsgHdr struct {
|
|||
type Msg struct {
|
||||
MsgHdr
|
||||
Compress bool // If true, the message will be compressed when converted to wire format.
|
||||
Size int // Number of octects in the message received from the wire.
|
||||
Question []Question // Holds the RR(s) of the question section.
|
||||
Answer []RR // Holds the RR(s) of the answer section.
|
||||
Ns []RR // Holds the RR(s) of the authority section.
|
||||
|
|
Loading…
Reference in New Issue