fix: 修复 TUIC congestion-controller

This commit is contained in:
xream 2025-04-13 03:28:11 +08:00
parent 0d575e6e88
commit 302c92ed87
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9
3 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.19.19",
"version": "2.19.20",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
"main": "src/main.js",
"scripts": {

View File

@ -962,6 +962,9 @@ function URI_TUIC() {
proxy.tfo = true;
} else if (['disable-sni', 'reduce-rtt'].includes(key)) {
proxy[key] = /(TRUE)|1/i.test(value);
} else if (key === 'congestion-control') {
proxy['congestion-controller'] = value;
delete proxy[key];
} else {
proxy[key] = value;
}

View File

@ -535,6 +535,12 @@ export default function URI_Producer() {
proxy[key]
) {
tuicParams.push(`${i.replace(/-/g, '_')}=1`);
} else if (
['congestion-controller'].includes(key)
) {
tuicParams.push(
`congestion_control=${proxy[key]}`,
);
} else if (proxy[key]) {
tuicParams.push(
`${i.replace(