Fixes to CDN files
This commit is contained in:
parent
1c742559cc
commit
03df107439
@ -46,6 +46,7 @@ var_dump(is_null($this->{$name}));
|
|||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
foreach ($this->sockets as $key => $socket) {
|
foreach ($this->sockets as $key => $socket) {
|
||||||
if ($socket instanceof Connection) {
|
if ($socket instanceof Connection) {
|
||||||
|
\danog\MadelineProto\Logger::log(['Connecting to DC '.$key.'...'], \danog\MadelineProto\Logger::VERBOSE);
|
||||||
$socket->old = true;
|
$socket->old = true;
|
||||||
$socket->close_and_reopen();
|
$socket->close_and_reopen();
|
||||||
} else {
|
} else {
|
||||||
|
@ -777,7 +777,11 @@ class MTProto extends \Volatile
|
|||||||
unset($dc['ipv6']);
|
unset($dc['ipv6']);
|
||||||
$this->settings['connection'][$test][$ipv6][$id] = $dc;
|
$this->settings['connection'][$test][$ipv6][$id] = $dc;
|
||||||
}
|
}
|
||||||
$this->datacenter->__construct($this->settings['connection'], $this->settings['connection_settings']);
|
$curdc = $this->datacenter->curdc;
|
||||||
|
$this->datacenter->dclist = $this->settings['connection'];
|
||||||
|
$this->datacenter->settings = $this->settings['connection_settings'];
|
||||||
|
$this->connect_to_all_dcs();
|
||||||
|
$this->datacenter->curdc = $curdc;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_self()
|
public function get_self()
|
||||||
|
Loading…
Reference in New Issue
Block a user