From 5a7ac1b1c770785e79818f5484ae16eae288343f Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Sat, 29 Nov 2025 18:40:35 +0800 Subject: [PATCH] no message --- src/Services/Subscribe/V2Ray.php | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/Services/Subscribe/V2Ray.php b/src/Services/Subscribe/V2Ray.php index 465f0f0de..673f1f391 100755 --- a/src/Services/Subscribe/V2Ray.php +++ b/src/Services/Subscribe/V2Ray.php @@ -50,6 +50,39 @@ final class V2Ray extends Base ]; $links .= 'vmess://' . base64_encode(json_encode($v2rayn_array)) . PHP_EOL; + } else if ((int) $node_raw->sort === 0) { + // case 0: + // $node = [ + // 'protocol' => 'shadowsocks', + // 'settings' => [ + // 'address' => $node_raw->server, + // 'port' => (int) $user->port, + // 'method' => $user->method, + // 'password' => $user->passwd, + // ], + // 'tag' => $node_raw->name, + // ]; + // + // break; + + $ss_array = [ + // 'v' => '2', + 'ps' => $node_raw->name, + 'add' => $node_raw->server, + 'port' => (int) $node_custom_config['offset_port_user'], + 'encryption' => $user->method, + 'password' => $user->passwd, + + // 'id' => $user->uuid, + // 'aid' => 0, + // 'net' => $network, + // 'type' => $header_type, + // 'host' => $host, + // 'path' => $path, + // 'tls' => $security, + ]; + + $links .= 'shadowsocks://' . base64_encode(json_encode($ss_array)) . PHP_EOL; } }