Backward compatibility and bugfixes
This commit is contained in:
parent
4f7c6c6936
commit
b4efa8bf88
|
@ -69,7 +69,8 @@ class DataCenter
|
|||
if (!isset($this->dclist[$test][$ipv6][$dc_number]['ip_address'])) {
|
||||
unset($this->sockets[$dc_number]);
|
||||
|
||||
throw new \danog\MadelineProto\Exception("No info for DC $dc_number");
|
||||
\danog\MadelineProto\Logger::log("No info for DC $dc_number", \danog\MadelineProto\Logger::ERROR);
|
||||
return false;
|
||||
}
|
||||
$address = $this->dclist[$test][$ipv6][$dc_number]['ip_address'];
|
||||
$port = $this->dclist[$test][$ipv6][$dc_number]['port'];
|
||||
|
|
|
@ -47,7 +47,7 @@ class MTProto
|
|||
/*
|
||||
const V = 71;
|
||||
*/
|
||||
const V = 91;
|
||||
const V = 92;
|
||||
const NOT_LOGGED_IN = 0;
|
||||
const WAITING_CODE = 1;
|
||||
const WAITING_SIGNUP = -1;
|
||||
|
@ -234,6 +234,9 @@ class MTProto
|
|||
if (!isset($connection['proxy_extra'])) {
|
||||
$connection['proxy_extra'] = [];
|
||||
}
|
||||
if (!isset($connection['pfs'])) {
|
||||
$connection['pfs'] = true;
|
||||
}
|
||||
}
|
||||
if (!isset($settings['authorization']['rsa_key'])) {
|
||||
unset($settings['authorization']['rsa_key']);
|
||||
|
@ -627,7 +630,7 @@ class MTProto
|
|||
}
|
||||
$id .= $dc['media_only'] ? '_media' : '';
|
||||
$ipv6 = $dc['ipv6'] ? 'ipv6' : 'ipv4';
|
||||
$id .= isset($this->settings['connection'][$test][$ipv6][$id]) && $this->settings['connection'][$test][$ipv6][$id]['ip_address'] != $dc['ip_address'] ? '_bk' : '';
|
||||
//$id .= isset($this->settings['connection'][$test][$ipv6][$id]) && $this->settings['connection'][$test][$ipv6][$id]['ip_address'] != $dc['ip_address'] ? '_bk' : '';
|
||||
if (is_numeric($id)) {
|
||||
$id = (int) $id;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user