mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	subscription: add shadowsocks SIP008 subscription support
Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
		| @@ -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) | ||||
|     { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user