From 6141430a882b5d708057d487ba215a3945cf21ae Mon Sep 17 00:00:00 2001 From: JW-3154 Date: Sat, 6 Jun 2026 11:11:01 +0800 Subject: [PATCH] Fix TUIC congestion control at Shadowrocket.php (#968) Fixes an issue where the TUIC congestion_control parameter was not being passed to clients on Shadowrocket. This PR adds the missing parameter to the URL query string, fetching it from $protocol_settings with a default and safe fallback to 'cubic', ensuring panel configurations are properly respected by the client. --- app/Protocols/Shadowrocket.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Protocols/Shadowrocket.php b/app/Protocols/Shadowrocket.php index e17aae3..9a50f21 100644 --- a/app/Protocols/Shadowrocket.php +++ b/app/Protocols/Shadowrocket.php @@ -411,7 +411,8 @@ class Shadowrocket extends AbstractProtocol $params = [ 'alpn' => data_get($protocol_settings, 'alpn'), 'sni' => data_get($protocol_settings, 'tls.server_name'), - 'insecure' => data_get($protocol_settings, 'tls.allow_insecure') + 'insecure' => data_get($protocol_settings, 'tls.allow_insecure'), + 'congestion_control' => data_get($protocol_settings, 'congestion_control', 'cubic') ]; if (data_get($protocol_settings, 'version') === 4) { $params['token'] = $password;