Add dns and tunnel context to conntection
This commit is contained in:
@@ -44,6 +44,9 @@ type ResolvedDomain struct {
|
||||
// information.
|
||||
Resolver *ResolverInfo
|
||||
|
||||
// RRCache holds the DNS response that was received for this domain.
|
||||
RRCache *RRCache
|
||||
|
||||
// Expires holds the timestamp when this entry expires.
|
||||
// This does not mean that the entry may not be used anymore afterwards,
|
||||
// but that this is used to calcuate the TTL of the database record.
|
||||
|
||||
@@ -24,13 +24,13 @@ type RRCache struct {
|
||||
RCode int
|
||||
|
||||
// Response Content
|
||||
Answer []dns.RR
|
||||
Ns []dns.RR
|
||||
Extra []dns.RR
|
||||
Answer []dns.RR `json:"-"`
|
||||
Ns []dns.RR `json:"-"`
|
||||
Extra []dns.RR `json:"-"`
|
||||
Expires int64
|
||||
|
||||
// Resolver Information
|
||||
Resolver *ResolverInfo
|
||||
Resolver *ResolverInfo `json:"-"`
|
||||
|
||||
// Metadata about the request and handling
|
||||
ServedFromCache bool
|
||||
|
||||
Reference in New Issue
Block a user