Util: Fix DoH handling of Cloudflare responses

This commit is contained in:
zzz
2020-05-30 21:44:48 +00:00
parent 370f96acfb
commit 4fd834d13e

View File

@ -318,7 +318,8 @@ public class DNSOverHTTPS implements EepGet.StatusListener {
continue; continue;
} }
} }
if (!hostAnswer.equals(name)) { // Cloudflare no longer adds the '.'
if (!(hostAnswer.equals(name) || host.equals(name))) {
log("name mismatch: " + name); log("name mismatch: " + name);
continue; continue;
} }