ipv6 fixes

This commit is contained in:
Daniil Gentili 2017-11-30 12:34:52 +01:00 committed by GitHub
parent a4b6640223
commit 2fd251e93a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,8 @@ class MTProto
if ($oldipv6 !== $this->ipv6) {
$this->settings['connection_settings']['all']['ipv6'] = $this->ipv6;
$this->parse_settings($this->settings);
$this->datacenter->settings = $this->settings['connection_settings'];
$this->connect_to_all_dcs();
}
preg_match('/const V = (\d+);/', @file_get_contents('https://raw.githubusercontent.com/danog/MadelineProto/master/src/danog/MadelineProto/MTProto.php'), $matches);
$keys = array_keys((array) get_object_vars($this));