Merge pull request #344 from betaxab/p1

subscription: add shadowsocks SIP008 subscription support
This commit is contained in:
tokumeikoi
2020-11-27 01:48:50 +08:00
committed by GitHub
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)
{