New domain for DoH.

GitOrigin-RevId: 0ff1b52e9b8fade7ffa50e099789dcb3d12914ec
This commit is contained in:
levlam 2020-01-25 23:36:49 +03:00
parent f2a4d70865
commit 182e8d29f0
2 changed files with 3 additions and 3 deletions

View File

@ -288,7 +288,7 @@ static ActorOwn<> get_simple_config_dns(Slice address, Slice host, Promise<Simpl
ActorOwn<> get_simple_config_google_dns(Promise<SimpleConfigResult> promise, const ConfigShared *shared_config, ActorOwn<> get_simple_config_google_dns(Promise<SimpleConfigResult> promise, const ConfigShared *shared_config,
bool is_test, int32 scheduler_id) { bool is_test, int32 scheduler_id) {
return get_simple_config_dns("www.google.com/resolve", "dns.google.com", std::move(promise), shared_config, is_test, return get_simple_config_dns("dns.google/resolve", "dns.google", std::move(promise), shared_config, is_test,
scheduler_id); scheduler_id);
} }

View File

@ -53,8 +53,8 @@ class GoogleDnsResolver : public Actor {
}); });
wget_ = create_actor<Wget>( wget_ = create_actor<Wget>(
"GoogleDnsResolver", std::move(wget_promise), "GoogleDnsResolver", std::move(wget_promise),
PSTRING() << "https://www.google.com/resolve?name=" << url_encode(host_) << "&type=" << (prefer_ipv6_ ? 28 : 1), PSTRING() << "https://dns.google/resolve?name=" << url_encode(host_) << "&type=" << (prefer_ipv6_ ? 28 : 1),
std::vector<std::pair<string, string>>({{"Host", "dns.google.com"}}), timeout, ttl, prefer_ipv6_, std::vector<std::pair<string, string>>({{"Host", "dns.google"}}), timeout, ttl, prefer_ipv6_,
SslStream::VerifyPeer::Off); SslStream::VerifyPeer::Off);
} }