Add dns and tunnel context to conntection

This commit is contained in:
Daniel
2021-10-14 15:54:42 +02:00
parent a085b6d430
commit ff31b7c8c5
5 changed files with 31 additions and 8 deletions

View File

@@ -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.

View File

@@ -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