sub-store-convert 2.36.20 → 2.36.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +14 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4021,6 +4021,7 @@ function Clash_All() {
|
|
|
4021
4021
|
proxy = yaml_default.parse(line);
|
|
4022
4022
|
}
|
|
4023
4023
|
if (![
|
|
4024
|
+
"zerotier",
|
|
4024
4025
|
"shadowquic",
|
|
4025
4026
|
"gost-relay",
|
|
4026
4027
|
"openvpn",
|
|
@@ -9268,7 +9269,8 @@ function Shadowrocket_Producer() {
|
|
|
9268
9269
|
"naive",
|
|
9269
9270
|
"openvpn",
|
|
9270
9271
|
"gost-relay",
|
|
9271
|
-
"shadowquic"
|
|
9272
|
+
"shadowquic",
|
|
9273
|
+
"zerotier"
|
|
9272
9274
|
].includes(proxy.type)) {
|
|
9273
9275
|
return false;
|
|
9274
9276
|
} else if (["xhttp"].includes(proxy.network)) {
|
|
@@ -10494,6 +10496,8 @@ var snellParser = (proxy = {}, includeUnsupportedProxy = false) => {
|
|
|
10494
10496
|
if (outputVersion === 6) {
|
|
10495
10497
|
if (proxy.mode)
|
|
10496
10498
|
parsedProxy.mode = proxy.mode;
|
|
10499
|
+
if (includeUnsupportedProxy && proxy["quic-proxy-mode"])
|
|
10500
|
+
parsedProxy.quic_proxy_mode = !!proxy["quic-proxy-mode"];
|
|
10497
10501
|
} else {
|
|
10498
10502
|
if (proxy["obfs-opts"]?.mode && proxy["obfs-opts"].mode !== "shadow-tls")
|
|
10499
10503
|
parsedProxy.obfs_mode = proxy["obfs-opts"].mode;
|
|
@@ -10850,7 +10854,7 @@ var tuic5Parser = (proxy = {}) => {
|
|
|
10850
10854
|
domainResolverParser(proxy, parsedProxy);
|
|
10851
10855
|
return parsedProxy;
|
|
10852
10856
|
};
|
|
10853
|
-
var anytlsParser = (proxy = {}) => {
|
|
10857
|
+
var anytlsParser = (proxy = {}, includeUnsupportedProxy = false) => {
|
|
10854
10858
|
const parsedProxy = {
|
|
10855
10859
|
tag: proxy.name,
|
|
10856
10860
|
type: "anytls",
|
|
@@ -10859,6 +10863,8 @@ var anytlsParser = (proxy = {}) => {
|
|
|
10859
10863
|
password: proxy.password,
|
|
10860
10864
|
tls: { enabled: true, server_name: proxy.server, insecure: false }
|
|
10861
10865
|
};
|
|
10866
|
+
if (includeUnsupportedProxy && proxy["client-name"])
|
|
10867
|
+
parsedProxy.client_name = `${proxy["client-name"]}`;
|
|
10862
10868
|
if (/^\d+$/.test(proxy["idle-session-check-interval"]))
|
|
10863
10869
|
parsedProxy.idle_session_check_interval = `${proxy["idle-session-check-interval"]}s`;
|
|
10864
10870
|
if (/^\d+$/.test(proxy["idle-session-timeout"]))
|
|
@@ -11195,7 +11201,12 @@ function singbox_Producer() {
|
|
|
11195
11201
|
list.push(wireguardParser(proxy));
|
|
11196
11202
|
break;
|
|
11197
11203
|
case "anytls":
|
|
11198
|
-
list.push(
|
|
11204
|
+
list.push(
|
|
11205
|
+
anytlsParser(
|
|
11206
|
+
proxy,
|
|
11207
|
+
opts["include-unsupported-proxy"]
|
|
11208
|
+
)
|
|
11209
|
+
);
|
|
11199
11210
|
break;
|
|
11200
11211
|
case "tailscale":
|
|
11201
11212
|
list.push(tailscaleParser(proxy));
|