mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 06:39:01 +01:00
CDN bugfix
This commit is contained in:
parent
98b203ac44
commit
bb9804290b
@ -1626,7 +1626,8 @@ class MTProto extends AsyncConstruct implements TLCallback
|
||||
{
|
||||
try {
|
||||
foreach ((yield $this->methodCallAsyncRead('help.getCdnConfig', [], ['datacenter' => $datacenter]))['public_keys'] as $curkey) {
|
||||
$this->cdn_rsa_keys[$tempkey->fp] = yield (new RSA)->load($this->TL, $curkey['public_key']);
|
||||
$curkey = yield (new RSA)->load($this->TL, $curkey['public_key']);
|
||||
$this->cdn_rsa_keys[$curkey->fp] = $curkey;
|
||||
}
|
||||
} catch (\danog\MadelineProto\TL\Exception $e) {
|
||||
$this->logger->logger($e->getMessage(), \danog\MadelineProto\Logger::FATAL_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user