mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 15:09:03 +08:00
feat: 支持 Clash VLESS 输出(与 Clash.Meta 的区别为: 无 XTLS
This commit is contained in:
parent
939022e5a3
commit
2c89a0ddbd
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.51",
|
"version": "2.14.52",
|
||||||
"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": {
|
||||||
|
@ -3,6 +3,9 @@ import { isPresent } from '@/core/proxy-utils/producers/utils';
|
|||||||
export default function Clash_Producer() {
|
export default function Clash_Producer() {
|
||||||
const type = 'ALL';
|
const type = 'ALL';
|
||||||
const produce = (proxies) => {
|
const produce = (proxies) => {
|
||||||
|
// VLESS XTLS is not supported by Clash
|
||||||
|
// https://github.com/MetaCubeX/Clash.Meta/blob/Alpha/docs/config.yaml#L532
|
||||||
|
// github.com/Dreamacro/clash/pull/2891/files
|
||||||
// filter unsupported proxies
|
// filter unsupported proxies
|
||||||
proxies = proxies.filter((proxy) => {
|
proxies = proxies.filter((proxy) => {
|
||||||
if (
|
if (
|
||||||
@ -10,17 +13,17 @@ export default function Clash_Producer() {
|
|||||||
'ss',
|
'ss',
|
||||||
'ssr',
|
'ssr',
|
||||||
'vmess',
|
'vmess',
|
||||||
|
'vless',
|
||||||
'socks',
|
'socks',
|
||||||
'http',
|
'http',
|
||||||
'snell',
|
'snell',
|
||||||
'trojan',
|
'trojan',
|
||||||
'wireguard',
|
'wireguard',
|
||||||
].includes(proxy.type)
|
].includes(proxy.type) ||
|
||||||
) {
|
(proxy.type === 'snell' && String(proxy.version) === '4') ||
|
||||||
return false;
|
(proxy.type === 'vless' &&
|
||||||
} else if (
|
(typeof proxy.flow !== 'undefined' ||
|
||||||
proxy.type === 'snell' &&
|
proxy['reality-opts']))
|
||||||
String(proxy.version) === '4'
|
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user