mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-06-04 11:13:59 +08:00
fix: 修复 TUIC congestion-controller
This commit is contained in:
parent
0d575e6e88
commit
302c92ed87
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.19.19",
|
"version": "2.19.20",
|
||||||
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -962,6 +962,9 @@ function URI_TUIC() {
|
|||||||
proxy.tfo = true;
|
proxy.tfo = true;
|
||||||
} else if (['disable-sni', 'reduce-rtt'].includes(key)) {
|
} else if (['disable-sni', 'reduce-rtt'].includes(key)) {
|
||||||
proxy[key] = /(TRUE)|1/i.test(value);
|
proxy[key] = /(TRUE)|1/i.test(value);
|
||||||
|
} else if (key === 'congestion-control') {
|
||||||
|
proxy['congestion-controller'] = value;
|
||||||
|
delete proxy[key];
|
||||||
} else {
|
} else {
|
||||||
proxy[key] = value;
|
proxy[key] = value;
|
||||||
}
|
}
|
||||||
|
@ -535,6 +535,12 @@ export default function URI_Producer() {
|
|||||||
proxy[key]
|
proxy[key]
|
||||||
) {
|
) {
|
||||||
tuicParams.push(`${i.replace(/-/g, '_')}=1`);
|
tuicParams.push(`${i.replace(/-/g, '_')}=1`);
|
||||||
|
} else if (
|
||||||
|
['congestion-controller'].includes(key)
|
||||||
|
) {
|
||||||
|
tuicParams.push(
|
||||||
|
`congestion_control=${proxy[key]}`,
|
||||||
|
);
|
||||||
} else if (proxy[key]) {
|
} else if (proxy[key]) {
|
||||||
tuicParams.push(
|
tuicParams.push(
|
||||||
`${i.replace(
|
`${i.replace(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user