Final altervista fixes
This commit is contained in:
parent
0544ad7320
commit
1a2a6db17f
@ -55,6 +55,7 @@ use Amp\Socket\ConnectException;
|
||||
use Amp\Loop;
|
||||
use Amp\TimeoutException;
|
||||
use Amp\Socket\ClientSocket;
|
||||
use Amp\Dns\Rfc1035StubResolver;
|
||||
|
||||
/**
|
||||
* Manages datacenters.
|
||||
@ -100,7 +101,7 @@ class DataCenter
|
||||
],
|
||||
$this->HTTPClient
|
||||
);
|
||||
$this->DoHClient = new Rfc8484StubResolver($DoHConfig);
|
||||
$this->DoHClient = Magic::$altervista ? new Rfc1035StubResolver() : new Rfc8484StubResolver($DoHConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -669,7 +669,7 @@ class MTProto extends AsyncConstruct implements TLCallback
|
||||
// connection settings
|
||||
'all' => [
|
||||
// These settings will be applied on every datacenter that hasn't a custom settings subarray...
|
||||
'protocol' => Magic::$altervista ? 'http' : 'tcp_abridged',
|
||||
'protocol' => 'tcp_abridged',
|
||||
// can be tcp_full, tcp_abridged, tcp_intermediate, http, https, obfuscated2, udp (unsupported)
|
||||
'test_mode' => false,
|
||||
// decides whether to connect to the main telegram servers or to the testing servers (deep telegram)
|
||||
|
Loading…
Reference in New Issue
Block a user