From be93e4bf2d7458f445e83885c03b393d6ee69d21 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 4 May 2012 23:25:41 +0200 Subject: [PATCH] Also add the remote server. TODO, but handy incase of async queries/replies --- msg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msg.go b/msg.go index d5400be0..4a9a49a1 100644 --- a/msg.go +++ b/msg.go @@ -81,7 +81,8 @@ type MsgHdr struct { type Msg struct { MsgHdr Compress bool // If true, the message will be compressed when converted to wire format. - Rtt time.Duration // Round Trip Time, time it took between sending a reply and receiving the answer. + Rtt time.Duration // Round Trip Time, time it took between sending a reply and receiving the answer. Only valid for clients. + RemoteAddr net.Addr // The remote address. Either the server or the client connecting. 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.