зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1460330 - Always use use TTL with TRR. r=mcmanus
This commit is contained in:
Родитель
4f75cae7c6
Коммит
ced57782d6
|
@ -1401,7 +1401,7 @@ nsHostResolver::PrepareRecordExpiration(nsHostRecord* rec) const
|
|||
unsigned int grace = mDefaultGracePeriod;
|
||||
|
||||
unsigned int ttl = mDefaultCacheLifetime;
|
||||
if (sGetTtlEnabled) {
|
||||
if (sGetTtlEnabled || rec->addr_info->IsTRR()) {
|
||||
if (rec->addr_info && rec->addr_info->ttl != AddrInfo::NO_TTL_DATA) {
|
||||
ttl = rec->addr_info->ttl;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче