2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Update API scheme to layer 78.

This commit is contained in:
John Preston
2018-04-25 13:24:48 +04:00
parent 93f6d4b6e7
commit 65f968ec1b
10 changed files with 194 additions and 80 deletions

View File

@@ -362,7 +362,8 @@ void ConnectionPrivate::appendTestConnection(
QWriteLocker lock(&stateConnMutex);
const auto priority = (qthelp::is_ipv6(ip) ? 0 : 1)
+ (protocol == DcOptions::Variants::Tcp ? 1 : 0);
+ (protocol == DcOptions::Variants::Tcp ? 1 : 0)
+ (protocolSecret.empty() ? 0 : 1);
_testConnections.push_back({
AbstractConnection::create(protocol, thread()),
priority