mirror of
https://github.com/v2board/v2board.git
synced 2025-08-18 04:53:33 +08:00
update: remove origin subscribe method
This commit is contained in:
20
app/Utils/Shadowsocks.php
Normal file
20
app/Utils/Shadowsocks.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user