mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-11 16:39:36 +01:00
13 lines
259 B
PHP
13 lines
259 B
PHP
<?php
|
|
|
|
use LeProxy\LeProxy\LeProxyServer;
|
|
use React\EventLoop\Loop;
|
|
|
|
require __DIR__.'/vendor/autoload.php';
|
|
|
|
$proxy = new LeProxyServer(Loop::get());
|
|
$proxySocket = $proxy->listen('127.0.0.1:0', false);
|
|
|
|
echo $proxySocket->getAddress().PHP_EOL;
|
|
|
|
Loop::run(); |