Bugfix
This commit is contained in:
parent
896956fe78
commit
d96068ac81
@ -62,6 +62,11 @@ trait AuthKeyHandler
|
|||||||
* ***********************************************************************
|
* ***********************************************************************
|
||||||
* Find our key in the server_public_key_fingerprints vector
|
* Find our key in the server_public_key_fingerprints vector
|
||||||
*/
|
*/
|
||||||
|
if (!isset($this->key->keydata)) {
|
||||||
|
// Load rsa key
|
||||||
|
\danog\MadelineProto\Logger::log(['Loading RSA key...'], Logger::ULTRA_VERBOSE);
|
||||||
|
$this->key = new RSA($this->settings['authorization']['rsa_key']);
|
||||||
|
}
|
||||||
foreach ($ResPQ['server_public_key_fingerprints'] as $curfp) {
|
foreach ($ResPQ['server_public_key_fingerprints'] as $curfp) {
|
||||||
if ($this->key->keydata['fp'] === $curfp) {
|
if ($this->key->keydata['fp'] === $curfp) {
|
||||||
$public_key_fingerprint = $curfp;
|
$public_key_fingerprint = $curfp;
|
||||||
|
Loading…
Reference in New Issue
Block a user