sub-store-convert 2.36.27 → 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 +15 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6336,10 +6336,13 @@ function mihomo(proxy, type, opts) {
|
|
|
6336
6336
|
...clashProxy,
|
|
6337
6337
|
name: proxyName
|
|
6338
6338
|
});
|
|
6339
|
-
opts
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6339
|
+
const configOverride = opts?.config || proxy._config;
|
|
6340
|
+
if (configOverride) {
|
|
6341
|
+
opts._merged.configOverride = {
|
|
6342
|
+
...opts._merged.configOverride || {},
|
|
6343
|
+
...configOverride
|
|
6344
|
+
};
|
|
6345
|
+
}
|
|
6343
6346
|
} else {
|
|
6344
6347
|
const external_proxy = {
|
|
6345
6348
|
name: proxy.name,
|
|
@@ -10812,6 +10815,10 @@ var hysteria2Parser = (proxy = {}) => {
|
|
|
10812
10815
|
parsedProxy.obfs.password = proxy["obfs-password"];
|
|
10813
10816
|
if (!parsedProxy.obfs.type)
|
|
10814
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"];
|
|
10815
10822
|
networkParser(proxy, parsedProxy);
|
|
10816
10823
|
tlsParser(proxy, parsedProxy);
|
|
10817
10824
|
tfoParser(proxy, parsedProxy);
|
|
@@ -10863,8 +10870,8 @@ var anytlsParser = (proxy = {}, includeUnsupportedProxy = false) => {
|
|
|
10863
10870
|
password: proxy.password,
|
|
10864
10871
|
tls: { enabled: true, server_name: proxy.server, insecure: false }
|
|
10865
10872
|
};
|
|
10866
|
-
if (
|
|
10867
|
-
parsedProxy.
|
|
10873
|
+
if (proxy["client-metadata"])
|
|
10874
|
+
parsedProxy.client_metadata = `${proxy["client-metadata"]}`;
|
|
10868
10875
|
if (/^\d+$/.test(proxy["idle-session-check-interval"]))
|
|
10869
10876
|
parsedProxy.idle_session_check_interval = `${proxy["idle-session-check-interval"]}s`;
|
|
10870
10877
|
if (/^\d+$/.test(proxy["idle-session-timeout"]))
|
|
@@ -11554,7 +11561,7 @@ function Egern_Producer() {
|
|
|
11554
11561
|
};
|
|
11555
11562
|
} else if (proxy.network === "http") {
|
|
11556
11563
|
proxy.transport = {
|
|
11557
|
-
|
|
11564
|
+
http1: {
|
|
11558
11565
|
method: proxy["http-opts"]?.method,
|
|
11559
11566
|
path: Array.isArray(
|
|
11560
11567
|
proxy["http-opts"]?.path
|
|
@@ -11774,7 +11781,7 @@ function hasHeaders(proxy) {
|
|
|
11774
11781
|
return proxy?.headers && typeof proxy.headers === "object" && Object.keys(proxy.headers).length > 0;
|
|
11775
11782
|
}
|
|
11776
11783
|
function getTfo(proxy) {
|
|
11777
|
-
return proxy.tfo ?? proxy["fast-open"];
|
|
11784
|
+
return !!(proxy.tfo ?? proxy["fast-open"]);
|
|
11778
11785
|
}
|
|
11779
11786
|
function getUdpRelay(proxy) {
|
|
11780
11787
|
return proxy.udp ?? proxy.udp_relay;
|