Bug 1460330 - Always use use TTL with TRR. r=mcmanus

This commit is contained in:
Daniel Stenberg 2018-05-10 06:32:00 -04:00
Родитель 4f75cae7c6
Коммит ced57782d6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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