subscription: add shadowsocks SIP008 subscription support

Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
Beta Soft
2020-11-19 13:05:49 +08:00
parent a0dcf51c28
commit 7f12a79d07
2 changed files with 34 additions and 0 deletions

View File

@ -17,6 +17,18 @@ class URLSchemes
return "ss://{$str}@{$server['host']}:{$server['port']}#{$name}\r\n";
}
public static function buildShadowsocksSIP008($server, User $user)
{
$config = [
"id" => $server['id'],
"remark" => $server['name'],
"server" => $server['host'],
"server_port" => $server['port'],
"password" => $user['uuid'],
"method" => $server['cipher']
];
return $config;
}
public static function buildVmess($server, User $user)
{