2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Try all available endpoints from config.

This commit is contained in:
John Preston
2018-05-02 22:07:34 +03:00
parent df4daca15b
commit 95fee543ec
7 changed files with 255 additions and 318 deletions

View File

@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/timer.h"
#include "base/weak_ptr.h"
#include "base/bytes.h"
#include "mtproto/rpc_sender.h"
namespace MTP {
@@ -45,6 +46,7 @@ private:
DcId dcId;
std::string ip;
int port;
bytes::vector secret;
};
friend bool operator==(const SpecialEndpoint &a, const SpecialEndpoint &b);
std::unique_ptr<SpecialConfigRequest> _specialLoader;