mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 17:49:02 +08:00
feat: 兼容某些机场订阅 hysteria 节点中的 auth_str 字段(将会在未来某个时候删除 但是有的机场不规范)
This commit is contained in:
parent
6d51774d36
commit
955c74a77d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.82",
|
"version": "2.14.83",
|
||||||
"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": {
|
||||||
|
@ -63,6 +63,13 @@ export default function ClashMeta_Producer() {
|
|||||||
proxy.version = 5;
|
proxy.version = 5;
|
||||||
}
|
}
|
||||||
} else if (proxy.type === 'hysteria') {
|
} else if (proxy.type === 'hysteria') {
|
||||||
|
// auth_str 将会在未来某个时候删除 但是有的机场不规范
|
||||||
|
if (
|
||||||
|
isPresent(proxy, 'auth_str') &&
|
||||||
|
!isPresent(proxy, 'auth-str')
|
||||||
|
) {
|
||||||
|
proxy['auth-str'] = proxy['auth_str'];
|
||||||
|
}
|
||||||
if (isPresent(proxy, 'alpn')) {
|
if (isPresent(proxy, 'alpn')) {
|
||||||
proxy.alpn = Array.isArray(proxy.alpn)
|
proxy.alpn = Array.isArray(proxy.alpn)
|
||||||
? proxy.alpn
|
? proxy.alpn
|
||||||
|
@ -63,6 +63,13 @@ export default function ShadowRocket_Producer() {
|
|||||||
proxy.version = 5;
|
proxy.version = 5;
|
||||||
}
|
}
|
||||||
} else if (proxy.type === 'hysteria') {
|
} else if (proxy.type === 'hysteria') {
|
||||||
|
// auth_str 将会在未来某个时候删除 但是有的机场不规范
|
||||||
|
if (
|
||||||
|
isPresent(proxy, 'auth_str') &&
|
||||||
|
!isPresent(proxy, 'auth-str')
|
||||||
|
) {
|
||||||
|
proxy['auth-str'] = proxy['auth_str'];
|
||||||
|
}
|
||||||
if (isPresent(proxy, 'alpn')) {
|
if (isPresent(proxy, 'alpn')) {
|
||||||
proxy.alpn = Array.isArray(proxy.alpn)
|
proxy.alpn = Array.isArray(proxy.alpn)
|
||||||
? proxy.alpn
|
? proxy.alpn
|
||||||
|
@ -79,6 +79,13 @@ export default function Stash_Producer() {
|
|||||||
proxy.version = 5;
|
proxy.version = 5;
|
||||||
}
|
}
|
||||||
} else if (proxy.type === 'hysteria') {
|
} else if (proxy.type === 'hysteria') {
|
||||||
|
// auth_str 将会在未来某个时候删除 但是有的机场不规范
|
||||||
|
if (
|
||||||
|
isPresent(proxy, 'auth_str') &&
|
||||||
|
!isPresent(proxy, 'auth-str')
|
||||||
|
) {
|
||||||
|
proxy['auth-str'] = proxy['auth_str'];
|
||||||
|
}
|
||||||
if (isPresent(proxy, 'alpn')) {
|
if (isPresent(proxy, 'alpn')) {
|
||||||
proxy.alpn = Array.isArray(proxy.alpn)
|
proxy.alpn = Array.isArray(proxy.alpn)
|
||||||
? proxy.alpn
|
? proxy.alpn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user