Improve and test mtproxyd self-update

This commit is contained in:
Daniil Gentili 2018-05-10 09:53:52 +00:00
parent c6fdf8d10b
commit df86c480ba

View File

@ -17,7 +17,10 @@ if (!file_exists('madeline.php')) {
}
if (!$debug) {
copy('https://phar.madelineproto.xyz/mtproxyd', $argv[0]);
$mtproxyd = file_get_contents('https://phar.madelineproto.xyz/mtproxyd');
if ($mtproxyd) {
file_put_contents($argv[0], $mtproxyd);
}
}
require_once 'madeline.php';