mirror of
https://github.com/v2board/v2board.git
synced 2025-06-14 21:57:50 +08:00
feature: shadowsocks and more
This commit is contained in:
@ -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 = [];
|
||||
|
Reference in New Issue
Block a user