forked from open-telegram-server/clients
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Datacenter.cpp.diff
30 lines (26 loc) · 1.04 KB
/
Datacenter.cpp.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/TMessagesProj/jni/tgnet/Datacenter.cpp b/TMessagesProj/jni/tgnet/Datacenter.cpp
index c3fe9928..d975de38 100644
--- a/TMessagesProj/jni/tgnet/Datacenter.cpp
+++ b/TMessagesProj/jni/tgnet/Datacenter.cpp
@@ -30,6 +30,8 @@
thread_local static SHA256_CTX sha256Ctx;
Datacenter::Datacenter(int32_t instance, uint32_t id) {
+ defaultPorts = new int32_t[4] {-1, 12345, 5222, -1};
+
instanceNum = instance;
datacenterId = id;
for (uint32_t a = 0; a < UPLOAD_CONNECTIONS_COUNT; a++) {
@@ -55,6 +57,7 @@ inline char char2int(char input) {
}
Datacenter::Datacenter(int32_t instance, NativeByteBuffer *data) {
+ defaultPorts = new int32_t[4] {-1, 12345, 5222, -1};
instanceNum = instance;
for (uint32_t a = 0; a < UPLOAD_CONNECTIONS_COUNT; a++) {
uploadConnection[a] = nullptr;
@@ -621,6 +624,8 @@ int64_t Datacenter::getServerSalt() {
DEBUG_D("dc%u valid salt not found", datacenterId);
}
+ DEBUG_E("patchByNebula: dc%u getServerSalt: %lli", datacenterId, result);
+
return result;
}