mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 03:19:02 +08:00
feat: 处理不规范的 hysteria2 节点
This commit is contained in:
parent
aa0943a909
commit
10ec8a25a2
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.351",
|
"version": "2.14.352",
|
||||||
"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": {
|
||||||
|
@ -414,6 +414,15 @@ function lastParse(proxy) {
|
|||||||
if (['hysteria', 'hysteria2'].includes(proxy.type) && !proxy.ports) {
|
if (['hysteria', 'hysteria2'].includes(proxy.type) && !proxy.ports) {
|
||||||
delete proxy.ports;
|
delete proxy.ports;
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
['hysteria2'].includes(proxy.type) &&
|
||||||
|
proxy.obfs &&
|
||||||
|
!['salamander'].includes(proxy.obfs) &&
|
||||||
|
!proxy['obfs-password']
|
||||||
|
) {
|
||||||
|
proxy['obfs-password'] = proxy.obfs;
|
||||||
|
proxy.obfs = 'salamander';
|
||||||
|
}
|
||||||
if (['vless'].includes(proxy.type)) {
|
if (['vless'].includes(proxy.type)) {
|
||||||
// 删除 reality-opts: {}
|
// 删除 reality-opts: {}
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user