sub-store-convert 2.36.20 → 2.36.33
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 +27 -9
- 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",
|
|
@@ -6335,10 +6336,13 @@ function mihomo(proxy, type, opts) {
|
|
|
6335
6336
|
...clashProxy,
|
|
6336
6337
|
name: proxyName
|
|
6337
6338
|
});
|
|
6338
|
-
opts
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6339
|
+
const configOverride = opts?.config || proxy._config;
|
|
6340
|
+
if (configOverride) {
|
|
6341
|
+
opts._merged.configOverride = {
|
|
6342
|
+
...opts._merged.configOverride || {},
|
|
6343
|
+
...configOverride
|
|
6344
|
+
};
|
|
6345
|
+
}
|
|
6342
6346
|
} else {
|
|
6343
6347
|
const external_proxy = {
|
|
6344
6348
|
name: proxy.name,
|
|
@@ -9268,7 +9272,8 @@ function Shadowrocket_Producer() {
|
|
|
9268
9272
|
"naive",
|
|
9269
9273
|
"openvpn",
|
|
9270
9274
|
"gost-relay",
|
|
9271
|
-
"shadowquic"
|
|
9275
|
+
"shadowquic",
|
|
9276
|
+
"zerotier"
|
|
9272
9277
|
].includes(proxy.type)) {
|
|
9273
9278
|
return false;
|
|
9274
9279
|
} else if (["xhttp"].includes(proxy.network)) {
|
|
@@ -10494,6 +10499,8 @@ var snellParser = (proxy = {}, includeUnsupportedProxy = false) => {
|
|
|
10494
10499
|
if (outputVersion === 6) {
|
|
10495
10500
|
if (proxy.mode)
|
|
10496
10501
|
parsedProxy.mode = proxy.mode;
|
|
10502
|
+
if (includeUnsupportedProxy && proxy["quic-proxy-mode"])
|
|
10503
|
+
parsedProxy.quic_proxy_mode = !!proxy["quic-proxy-mode"];
|
|
10497
10504
|
} else {
|
|
10498
10505
|
if (proxy["obfs-opts"]?.mode && proxy["obfs-opts"].mode !== "shadow-tls")
|
|
10499
10506
|
parsedProxy.obfs_mode = proxy["obfs-opts"].mode;
|
|
@@ -10808,6 +10815,10 @@ var hysteria2Parser = (proxy = {}) => {
|
|
|
10808
10815
|
parsedProxy.obfs.password = proxy["obfs-password"];
|
|
10809
10816
|
if (!parsedProxy.obfs.type)
|
|
10810
10817
|
delete parsedProxy.obfs;
|
|
10818
|
+
if (proxy["bbr-profile"])
|
|
10819
|
+
parsedProxy.bbr_profile = proxy["bbr-profile"];
|
|
10820
|
+
if (proxy["disable-chrome-parrot"])
|
|
10821
|
+
parsedProxy.disable_chrome_parrot = !!proxy["disable-chrome-parrot"];
|
|
10811
10822
|
networkParser(proxy, parsedProxy);
|
|
10812
10823
|
tlsParser(proxy, parsedProxy);
|
|
10813
10824
|
tfoParser(proxy, parsedProxy);
|
|
@@ -10850,7 +10861,7 @@ var tuic5Parser = (proxy = {}) => {
|
|
|
10850
10861
|
domainResolverParser(proxy, parsedProxy);
|
|
10851
10862
|
return parsedProxy;
|
|
10852
10863
|
};
|
|
10853
|
-
var anytlsParser = (proxy = {}) => {
|
|
10864
|
+
var anytlsParser = (proxy = {}, includeUnsupportedProxy = false) => {
|
|
10854
10865
|
const parsedProxy = {
|
|
10855
10866
|
tag: proxy.name,
|
|
10856
10867
|
type: "anytls",
|
|
@@ -10859,6 +10870,8 @@ var anytlsParser = (proxy = {}) => {
|
|
|
10859
10870
|
password: proxy.password,
|
|
10860
10871
|
tls: { enabled: true, server_name: proxy.server, insecure: false }
|
|
10861
10872
|
};
|
|
10873
|
+
if (proxy["client-metadata"])
|
|
10874
|
+
parsedProxy.client_metadata = `${proxy["client-metadata"]}`;
|
|
10862
10875
|
if (/^\d+$/.test(proxy["idle-session-check-interval"]))
|
|
10863
10876
|
parsedProxy.idle_session_check_interval = `${proxy["idle-session-check-interval"]}s`;
|
|
10864
10877
|
if (/^\d+$/.test(proxy["idle-session-timeout"]))
|
|
@@ -11195,7 +11208,12 @@ function singbox_Producer() {
|
|
|
11195
11208
|
list.push(wireguardParser(proxy));
|
|
11196
11209
|
break;
|
|
11197
11210
|
case "anytls":
|
|
11198
|
-
list.push(
|
|
11211
|
+
list.push(
|
|
11212
|
+
anytlsParser(
|
|
11213
|
+
proxy,
|
|
11214
|
+
opts["include-unsupported-proxy"]
|
|
11215
|
+
)
|
|
11216
|
+
);
|
|
11199
11217
|
break;
|
|
11200
11218
|
case "tailscale":
|
|
11201
11219
|
list.push(tailscaleParser(proxy));
|
|
@@ -11543,7 +11561,7 @@ function Egern_Producer() {
|
|
|
11543
11561
|
};
|
|
11544
11562
|
} else if (proxy.network === "http") {
|
|
11545
11563
|
proxy.transport = {
|
|
11546
|
-
|
|
11564
|
+
http1: {
|
|
11547
11565
|
method: proxy["http-opts"]?.method,
|
|
11548
11566
|
path: Array.isArray(
|
|
11549
11567
|
proxy["http-opts"]?.path
|
|
@@ -11763,7 +11781,7 @@ function hasHeaders(proxy) {
|
|
|
11763
11781
|
return proxy?.headers && typeof proxy.headers === "object" && Object.keys(proxy.headers).length > 0;
|
|
11764
11782
|
}
|
|
11765
11783
|
function getTfo(proxy) {
|
|
11766
|
-
return proxy.tfo ?? proxy["fast-open"];
|
|
11784
|
+
return !!(proxy.tfo ?? proxy["fast-open"]);
|
|
11767
11785
|
}
|
|
11768
11786
|
function getUdpRelay(proxy) {
|
|
11769
11787
|
return proxy.udp ?? proxy.udp_relay;
|