feature: shadowsocks and more

This commit is contained in:
Tokumeikoi
2020-10-04 14:21:09 +08:00
parent ac48f90678
commit ba2e0a6b66
23 changed files with 657 additions and 150 deletions

View File

@ -5,6 +5,19 @@ namespace App\Utils;
class Clash
{
public static function buildShadowsocks($uuid, $server)
{
$array = [];
$array['name'] = $server->name;
$array['type'] = 'ss';
$array['server'] = $server->host;
$array['port'] = $server->port;
$array['cipher'] = $server->cipher;
$array['password'] = $uuid;
$array['udp'] = true;
return $array;
}
public static function buildVmess($uuid, $server)
{
$array = [];