GramJs: Switch to WebZ DC URLs

This commit is contained in:
Alexander Zinchuk 2021-06-22 22:39:02 +03:00
parent dec29b0d05
commit d48ec8f3cb

View File

@ -606,35 +606,36 @@ function isListLike(item) {
}
*/
function getDC(dcId) {
// TODO Move to external config
switch (dcId) {
case 1:
return {
id: 1,
ipAddress: 'pluto.web.telegram.org',
ipAddress: 'zws1.web.telegram.org',
port: 443,
};
case 2:
return {
id: 2,
ipAddress: 'venus.web.telegram.org',
ipAddress: 'zws2.web.telegram.org',
port: 443,
};
case 3:
return {
id: 3,
ipAddress: 'aurora.web.telegram.org',
ipAddress: 'zws3.web.telegram.org',
port: 443,
};
case 4:
return {
id: 4,
ipAddress: 'vesta.web.telegram.org',
ipAddress: 'zws4.web.telegram.org',
port: 443,
};
case 5:
return {
id: 5,
ipAddress: 'flora.web.telegram.org',
ipAddress: 'zws5.web.telegram.org',
port: 443,
};
default: