Skip to content

Commit

Permalink
Update mtproxyd
Browse files Browse the repository at this point in the history
  • Loading branch information
p1ratrulezzz authored May 25, 2018
1 parent 8568a6c commit 1543970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opt/mtproto-proxy/mtproxyd
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $protocol = getprotobyname('tcp');
$protocol = $protocol === false ? 0 : $protocol;
for ($i=0; !$clean && $i<10; $i++) {
try {
$handler = new \danog\MadelineProto\Server(['type' => AF_INET, 'protocol' => $protocol, 'address' => '54.38.53.171', 'port' => $argv[2], 'handler' => '\danog\MadelineProto\Server\Proxy', 'extra' => ['madeline' => $MadelineProto->API->datacenter->sockets, 'secret' => hex2bin($secret), 'timeout' => 15]]);
$handler = new \danog\MadelineProto\Server(['type' => AF_INET, 'protocol' => $protocol, 'address' => '0.0.0.0', 'port' => $argv[2], 'handler' => '\danog\MadelineProto\Server\Proxy', 'extra' => ['madeline' => $MadelineProto->API->datacenter->sockets, 'secret' => hex2bin($secret), 'timeout' => 15]]);
$handler->start();
$clean = true;
}
Expand Down

0 comments on commit 1543970

Please sign in to comment.