Skip to content

Commit d12e4e1

Browse files
committed
revert: loon sni 字段回退引号包裹的逻辑
1 parent 2cdd48a commit d12e4e1

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sub-store",
3-
"version": "2.21.49",
3+
"version": "2.21.50",
44
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.",
55
"main": "src/main.js",
66
"scripts": {

backend/src/core/proxy-utils/producers/loon.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function trojan(proxy) {
296296
);
297297

298298
// sni
299-
result.appendIfPresent(`,tls-name="${proxy.sni}"`, 'sni');
299+
result.appendIfPresent(`,tls-name=${proxy.sni}`, 'sni');
300300
result.appendIfPresent(
301301
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
302302
'tls-fingerprint',
@@ -351,7 +351,7 @@ function anytls(proxy) {
351351
);
352352

353353
// sni
354-
result.appendIfPresent(`,tls-name="${proxy.sni}"`, 'sni');
354+
result.appendIfPresent(`,tls-name=${proxy.sni}`, 'sni');
355355
result.appendIfPresent(
356356
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
357357
'tls-fingerprint',
@@ -432,7 +432,7 @@ function vmess(proxy) {
432432
);
433433

434434
if (isReality) {
435-
result.appendIfPresent(`,sni="${proxy.sni}"`, 'sni');
435+
result.appendIfPresent(`,sni=${proxy.sni}`, 'sni');
436436
result.appendIfPresent(
437437
`,public-key="${proxy['reality-opts']['public-key']}"`,
438438
'reality-opts.public-key',
@@ -443,7 +443,7 @@ function vmess(proxy) {
443443
);
444444
} else {
445445
// sni
446-
result.appendIfPresent(`,tls-name="${proxy.sni}"`, 'sni');
446+
result.appendIfPresent(`,tls-name=${proxy.sni}`, 'sni');
447447
result.appendIfPresent(
448448
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
449449
'tls-fingerprint',
@@ -545,7 +545,7 @@ function vless(proxy) {
545545
result.appendIfPresent(`,flow=${proxy.flow}`, 'flow');
546546
}
547547
if (isReality) {
548-
result.appendIfPresent(`,sni="${proxy.sni}"`, 'sni');
548+
result.appendIfPresent(`,sni=${proxy.sni}`, 'sni');
549549
result.appendIfPresent(
550550
`,public-key="${proxy['reality-opts']['public-key']}"`,
551551
'reality-opts.public-key',
@@ -556,7 +556,7 @@ function vless(proxy) {
556556
);
557557
} else {
558558
// sni
559-
result.appendIfPresent(`,tls-name="${proxy.sni}"`, 'sni');
559+
result.appendIfPresent(`,tls-name=${proxy.sni}`, 'sni');
560560
result.appendIfPresent(
561561
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
562562
'tls-fingerprint',
@@ -594,7 +594,7 @@ function http(proxy) {
594594
result.appendIfPresent(`,"${proxy.password}"`, 'password');
595595

596596
// sni
597-
result.appendIfPresent(`,sni="${proxy.sni}"`, 'sni');
597+
result.appendIfPresent(`,sni=${proxy.sni}`, 'sni');
598598

599599
// tls verification
600600
result.appendIfPresent(
@@ -627,7 +627,7 @@ function socks5(proxy) {
627627
result.appendIfPresent(`,over-tls=${proxy.tls}`, 'tls');
628628

629629
// sni
630-
result.appendIfPresent(`,sni="${proxy.sni}"`, 'sni');
630+
result.appendIfPresent(`,sni=${proxy.sni}`, 'sni');
631631

632632
// tls verification
633633
result.appendIfPresent(
@@ -739,7 +739,7 @@ function hysteria2(proxy) {
739739
result.appendIfPresent(`,"${proxy.password}"`, 'password');
740740

741741
// sni
742-
result.appendIfPresent(`,tls-name="${proxy.sni}"`, 'sni');
742+
result.appendIfPresent(`,tls-name=${proxy.sni}`, 'sni');
743743
result.appendIfPresent(
744744
`,tls-cert-sha256=${proxy['tls-fingerprint']}`,
745745
'tls-fingerprint',

0 commit comments

Comments
 (0)