mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-22 03:58:47 +00:00
no message
This commit is contained in:
@@ -69,6 +69,12 @@ MTInternalIdClass(MTHttpWorker)
|
||||
int32_t randomId = 0;
|
||||
arc4random_buf(&randomId, 4);
|
||||
|
||||
/*#ifdef DEBUG
|
||||
if (![address isIpv6]) {
|
||||
address = [[MTDatacenterAddress alloc] initWithIp:@"127.0.0.1" port:443 preferForMedia:address.preferForMedia restrictToTcp:address.restrictToTcp];
|
||||
}
|
||||
#endif*/
|
||||
|
||||
NSString *urlString = [[NSString alloc] initWithFormat:@"http://%@:%d/api%" PRIx32 "", address.ip, (int)address.port, randomId];
|
||||
|
||||
self = [super initWithBaseURL:[[NSURL alloc] initWithString:urlString]];
|
||||
|
||||
@@ -111,7 +111,14 @@ static void init_ctr(struct ctr_state *state, const unsigned char *iv)
|
||||
{
|
||||
_internalId = [[MTInternalId(MTTcpConnection) alloc] init];
|
||||
|
||||
/*#ifdef DEBUG
|
||||
if (![address isIpv6]) {
|
||||
address = [[MTDatacenterAddress alloc] initWithIp:@"127.0.0.1" port:443 preferForMedia:address.preferForMedia restrictToTcp:address.restrictToTcp];
|
||||
}
|
||||
#endif*/
|
||||
|
||||
_address = address;
|
||||
|
||||
_interface = interface;
|
||||
|
||||
if (context.apiEnvironment.datacenterAddressOverrides[@(datacenterId)] != nil) {
|
||||
|
||||
Reference in New Issue
Block a user