v2board/app/Utils/Shadowsocks.php
2021-07-02 21:25:26 +09:00

21 lines
441 B
PHP

<?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;
}
}