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
feat: AnyTLS URI 支持 UDP 参数
This commit is contained in:
parent
b60995f7ac
commit
44d72523ce
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.19.24",
|
"version": "2.19.25",
|
||||||
"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": {
|
||||||
|
@ -744,6 +744,8 @@ function URI_AnyTLS() {
|
|||||||
proxy[key] = value ? value.split(',') : undefined;
|
proxy[key] = value ? value.split(',') : undefined;
|
||||||
} else if (['insecure'].includes(key)) {
|
} else if (['insecure'].includes(key)) {
|
||||||
proxy['skip-cert-verify'] = /(TRUE)|1/i.test(value);
|
proxy['skip-cert-verify'] = /(TRUE)|1/i.test(value);
|
||||||
|
} else if (['udp'].includes(key)) {
|
||||||
|
proxy[key] = /(TRUE)|1/i.test(value);
|
||||||
} else {
|
} else {
|
||||||
proxy[key] = value;
|
proxy[key] = value;
|
||||||
}
|
}
|
||||||
|
@ -589,6 +589,10 @@ export default function URI_Producer() {
|
|||||||
if (proxy[key]) {
|
if (proxy[key]) {
|
||||||
anytlsParams.push(`insecure=1`);
|
anytlsParams.push(`insecure=1`);
|
||||||
}
|
}
|
||||||
|
} else if (['udp'].includes(key)) {
|
||||||
|
if (proxy[key]) {
|
||||||
|
anytlsParams.push(`udp=1`);
|
||||||
|
}
|
||||||
} else if (proxy[key]) {
|
} else if (proxy[key]) {
|
||||||
anytlsParams.push(
|
anytlsParams.push(
|
||||||
`${i.replace(/-/g, '_')}=${encodeURIComponent(
|
`${i.replace(/-/g, '_')}=${encodeURIComponent(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user