2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Update API scheme to layer 82.

This commit is contained in:
John Preston
2018-06-26 14:58:29 +01:00
parent 941288b58e
commit ff53404d5b
20 changed files with 129 additions and 50 deletions

View File

@@ -215,9 +215,7 @@ void SpecialConfigRequest::performRequest(const Attempt &attempt) {
} break;
case Type::Dns: {
url.setPath(qsl("/resolve"));
url.setQuery(
qsl("name=%1.stel.com&type=16").arg(
cTestMode() ? qsl("testapv2") : qsl("apv2")));
url.setQuery(qsl("name=%1&type=16").arg(Global::TxtDomainString()));
request.setRawHeader("Host", "dns.google.com");
} break;
default: Unexpected("Type in SpecialConfigRequest::performRequest.");