Skip to content

Commit 0bd28a1

Browse files
committed
Fix
1 parent 52436b8 commit 0bd28a1

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

docs

src/MTProto.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,9 @@ public function handleRequest(ServerRequest $request): ServerResponse
10081008
if ($legacy) {
10091009
$this->datacenter = new DataCenter($this);
10101010
foreach ($legacy as $dc => $socket) {
1011-
$this->datacenter->getDataCenterConnection($dc, $socket);
1011+
if ($dc > 0) {
1012+
$this->datacenter->getDataCenterConnection($dc, $socket);
1013+
}
10121014
}
10131015
}
10141016
} else {

tests/dockerfiles/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ RUN set -eux; \
103103
CPPFLAGS="$PHP_CPPFLAGS" \
104104
LDFLAGS="$PHP_LDFLAGS" \
105105
# https://github.com/php/php-src/blob/d6299206dd828382753453befd1b915491b741c6/configure.ac#L1496-L1511
106-
PHP_BUILD_PROVIDER='https://github.com/docker-library/php' \
106+
PHP_BUILD_PROVIDER='https://github.com/danog/MadelineProto' \
107107
PHP_UNAME='Linux - Docker' \
108108
; \
109109
cd /usr/src/php; \

0 commit comments

Comments
 (0)