This commit is contained in:
Daniil Gentili 2017-01-15 18:00:30 +01:00
parent 0fe0b925aa
commit 6f32ee51ef
2 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ class DataCenter
$test = $settings['test_mode'] ? 'test' : 'main';
$ipv6 = $settings['ipv6'] ? 'ipv6' : 'ipv4';
$address = $this->dclist[$test][$ipv6][$dc_number]['ip_address'];
$address = $settings['ipv6'] ? '['.$address.']' : $address;
$port = $this->dclist[$test][$ipv6][$dc_number]['port'];
if ($settings['protocol'] == 'https') {
$subdomain = $this->dclist['ssl_subdomains'][$dc_number].($settings['upload'] ? '-1' : '');

View File

@ -455,7 +455,7 @@ trait UpdateHandler
$update['message']['out'] = true;
}
\danog\MadelineProto\Logger::log('Saving an update of type '.$update['_'].'...');
if ($this->settings['pwr']['strict']) {
if (isset($this->settings['pwr']['strict']) && $this->settings['pwr']['strict']) {
$this->pwr_update_handler($update);
} else {
$this->settings['updates']['callback']($update);