1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-11 16:39:36 +01:00
MadelineProto/vendor-bin/leproxy/proxy.php
2023-11-30 17:44:10 +01:00

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();