|
|
|
@ -12,15 +12,15 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
@@ -12,15 +12,15 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
|
|
|
|
|
|
|
|
|
|
var dcOptions = Config.Modes.test |
|
|
|
|
? [ |
|
|
|
|
{id: 1, host: '149.154.175.10', port: 80}, |
|
|
|
|
{id: 2, host: '149.154.167.40', port: 80}, |
|
|
|
|
{id: 1, host: '149.154.175.10', port: 80}, |
|
|
|
|
{id: 2, host: '149.154.167.40', port: 80}, |
|
|
|
|
{id: 3, host: '149.154.175.117', port: 80} |
|
|
|
|
] |
|
|
|
|
: [ |
|
|
|
|
{id: 1, host: '149.154.175.50', port: 80}, |
|
|
|
|
{id: 2, host: '149.154.167.51', port: 80}, |
|
|
|
|
{id: 1, host: '149.154.175.50', port: 80}, |
|
|
|
|
{id: 2, host: '149.154.167.51', port: 80}, |
|
|
|
|
{id: 3, host: '149.154.175.100', port: 80}, |
|
|
|
|
{id: 4, host: '149.154.167.91', port: 80}, |
|
|
|
|
{id: 4, host: '149.154.167.91', port: 80}, |
|
|
|
|
{id: 5, host: '149.154.171.5', port: 80} |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
@ -31,7 +31,7 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
@@ -31,7 +31,7 @@ angular.module('izhukov.mtproto', ['izhukov.utils'])
|
|
|
|
|
var chosenServer = false, |
|
|
|
|
i, dcOption; |
|
|
|
|
|
|
|
|
|
if (Config.Modes.ssl) { |
|
|
|
|
if (Config.Modes.ssl || !Config.Modes.http) { |
|
|
|
|
var subdomain = sslSubdomains[dcID - 1] + (upload ? '-1' : ''); |
|
|
|
|
var path = Config.Modes.test ? 'apiw_test1' : 'apiw1'; |
|
|
|
|
chosenServer = 'https://' + subdomain + '.web.telegram.org/' + path; |
|
|
|
|