v2board/app/Utils/Shadowsocks.php

21 lines
441 B
PHP
Raw Normal View History

2021-07-02 20:25:26 +08:00
<?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;
}
}