mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 08:19:01 +08:00
feat: Added support for producing snell nodes with reuse and optional obfs
This commit is contained in:
parent
431b1a3c8e
commit
fcab8401e0
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.3",
|
"version": "2.14.4",
|
||||||
"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": {
|
||||||
|
@ -215,15 +215,15 @@ function snell(proxy) {
|
|||||||
|
|
||||||
// obfs
|
// obfs
|
||||||
result.appendIfPresent(
|
result.appendIfPresent(
|
||||||
`,obfs=${proxy['obfs-opts'].mode}`,
|
`,obfs=${proxy['obfs-opts']?.mode}`,
|
||||||
'obfs-opts.mode',
|
'obfs-opts.mode',
|
||||||
);
|
);
|
||||||
result.appendIfPresent(
|
result.appendIfPresent(
|
||||||
`,obfs-host=${proxy['obfs-opts'].host}`,
|
`,obfs-host=${proxy['obfs-opts']?.host}`,
|
||||||
'obfs-opts.host',
|
'obfs-opts.host',
|
||||||
);
|
);
|
||||||
result.appendIfPresent(
|
result.appendIfPresent(
|
||||||
`,obfs-uri=${proxy['obfs-opts'].path}`,
|
`,obfs-uri=${proxy['obfs-opts']?.path}`,
|
||||||
'obfs-opts.path',
|
'obfs-opts.path',
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -233,6 +233,9 @@ function snell(proxy) {
|
|||||||
// test-url
|
// test-url
|
||||||
result.appendIfPresent(`,test-url=${proxy['test-url']}`, 'test-url');
|
result.appendIfPresent(`,test-url=${proxy['test-url']}`, 'test-url');
|
||||||
|
|
||||||
|
// reuse
|
||||||
|
result.appendIfPresent(`,reuse=${proxy['reuse']}`, 'reuse');
|
||||||
|
|
||||||
return result.toString();
|
return result.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user