Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.21 KB

teamgram-android.md

File metadata and controls

35 lines (27 loc) · 1.21 KB

teamgram-android

Install

patch

Default connect to Teamgram Test Server.

If you want to connect to your own server, you can modify the following code:

ConnectionsManager.cpp#L1770

https://github.com/teamgram/teamgram-android/blob/teamgram/TMessagesProj/jni/tgnet/ConnectionsManager.cpp#L1770
void ConnectionsManager::initDatacenters() {
    Datacenter *datacenter;
    if (!testBackend) {
        if (datacenters.find(1) == datacenters.end()) {
            datacenter = new Datacenter(instanceNum, 1);
            datacenter->addAddressAndPort("XXX.XXX.XXX.XXX", 10443, 0, "");
            datacenters[1] = datacenter;
        }
    } else {
        if (datacenters.find(1) == datacenters.end()) {
            datacenter = new Datacenter(instanceNum, 1);
            datacenter->addAddressAndPort("XXX.XXX.XXX.XXX", 10443, 0, "");
            datacenters[1] = datacenter;
        }
    }
}