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

@@ -264,8 +264,9 @@ func UpdateIPsAndCNAMEs(q *resolver.Query, rrCache *resolver.RRCache, conn *netw
// Create new record for this IP.
record := resolver.ResolvedDomain{
Domain: q.FQDN,
Expires: rrCache.Expires,
RRCache: rrCache,
Resolver: rrCache.Resolver,
Expires: rrCache.Expires,
}
// Resolve all CNAMEs in the correct order and add the to the record.