Skip to content

Commit

Permalink
proxy: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Oct 10, 2022
1 parent 8d00f83 commit 32f384d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion proxy/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func isCacheableNegative(m *dns.Msg) (ok bool) {
const ServFailMaxCacheTTL = 30

// calculateTTL returns the number of seconds for which m could be cached. It's
// usually the lowest TTL among all a'm resource records. It returns 0 if m
// usually the lowest TTL among all m's resource records. It returns 0 if m
// isn't cacheable according to it's contents.
func calculateTTL(m *dns.Msg) (ttl uint32) {
// Use the maximum value as a guard value. If the inner loop is entered,
Expand Down
4 changes: 2 additions & 2 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ func (p *Proxy) Resolve(d *DNSContext) (err error) {
return nil
}

// On cache miss request for DNSSEC from the upstream to cache
// it afterwards.
// On cache miss request for DNSSEC from the upstream to cache it
// afterwards.
addDO(d.Req)
}

Expand Down

0 comments on commit 32f384d

Please sign in to comment.