update: remove origin subscribe method

This commit is contained in:
tokumeikoi
2021-07-02 21:25:26 +09:00
parent efc8419eb5
commit dfef6d2d94
5 changed files with 24 additions and 121 deletions

20
app/Utils/Shadowsocks.php Normal file
View File

@ -0,0 +1,20 @@
<?php
namespace App\Utils;
use App\Models\User;
class Shadowsocks
{
public static function SIP008($server, User $user)
{
$config = [
"id" => $server['id'],
"remarks" => $server['name'],
"server" => $server['host'],
"server_port" => $server['port'],
"password" => $user['uuid'],
"method" => $server['cipher']
];
return $config;
}
}