1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:59:01 +01:00

Add support for iterable proxy settings

This commit is contained in:
Daniil Gentili 2019-06-01 14:04:10 +02:00
parent 58f0bce84b
commit 2924bb66a1
3 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@
* Improved message splitting algorithm: performance improvements, and it will now notify you via the logs if there are too many entities in the logs, or if the entities are too long.
* Improved get_self method.
* Rewritten proxy stack
* magic sleep
Things to expect in the next releases:
Document async apis

2
docs

@ -1 +1 @@
Subproject commit e8e22ca165ac1bc8a7435d5d55b3e94b1883d9d8
Subproject commit af0458d42d1a6dccea3335afbfaf9e774a8550ff

View File

@ -209,7 +209,7 @@ class DataCenter
$combos[] = [[DefaultStream::getName(), []], [BufferedRawStream::getName(), []], [ObfuscatedStream::getName(), $extra], [IntermediatePaddedStream::getName(), []]];
}
if (is_array($this->settings[$dc_config_number]['proxy'])) {
if (is_iterable($this->settings[$dc_config_number]['proxy'])) {
$proxies = $this->settings[$dc_config_number]['proxy'];
$proxy_extras = $this->settings[$dc_config_number]['proxy_extra'];
} else {