mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-03 21:27:37 +03:00
serve-stale on overflow
This commit is contained in:
parent
c8a61abb79
commit
1052fa6323
1 changed files with 5 additions and 2 deletions
|
@ -603,8 +603,11 @@ func (proxy *Proxy) processIncomingQuery(clientProto string, serverProto string,
|
|||
return
|
||||
}
|
||||
}
|
||||
if onlyCached && len(response) == 0 {
|
||||
return
|
||||
if onlyCached {
|
||||
if len(response) == 0 {
|
||||
return
|
||||
}
|
||||
serverInfo = nil
|
||||
}
|
||||
if len(response) == 0 && serverInfo != nil {
|
||||
var ttl *uint32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue