mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 19:49:00 +08:00
feat: QX 输出正式支持 VLESS
This commit is contained in:
parent
3ab21b0e26
commit
0b5761e5fc
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "sub-store",
|
"name": "sub-store",
|
||||||
"version": "2.14.292",
|
"version": "2.14.294",
|
||||||
"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,7 @@ import { isPresent, Result } from './utils';
|
|||||||
const targetPlatform = 'QX';
|
const targetPlatform = 'QX';
|
||||||
|
|
||||||
export default function QX_Producer() {
|
export default function QX_Producer() {
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const produce = (proxy, type, opts = {}) => {
|
const produce = (proxy, type, opts = {}) => {
|
||||||
switch (proxy.type) {
|
switch (proxy.type) {
|
||||||
case 'ss':
|
case 'ss':
|
||||||
@ -18,13 +19,7 @@ export default function QX_Producer() {
|
|||||||
case 'socks5':
|
case 'socks5':
|
||||||
return socks5(proxy);
|
return socks5(proxy);
|
||||||
case 'vless':
|
case 'vless':
|
||||||
if (opts['include-unsupported-proxy']) {
|
|
||||||
return vless(proxy);
|
return vless(proxy);
|
||||||
} else {
|
|
||||||
throw new Error(
|
|
||||||
`Platform ${targetPlatform}(App Store Release) does not support proxy type: ${proxy.type}`,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Platform ${targetPlatform} does not support proxy type: ${proxy.type}`,
|
`Platform ${targetPlatform} does not support proxy type: ${proxy.type}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user