Skip to content

Commit

Permalink
feat: QX 输出正式支持 VLESS
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Apr 21, 2024
1 parent 3ab21b0 commit 0b5761e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.292",
"version": "2.14.294",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
9 changes: 2 additions & 7 deletions backend/src/core/proxy-utils/producers/qx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { isPresent, Result } from './utils';
const targetPlatform = 'QX';

export default function QX_Producer() {
// eslint-disable-next-line no-unused-vars
const produce = (proxy, type, opts = {}) => {
switch (proxy.type) {
case 'ss':
Expand All @@ -18,13 +19,7 @@ export default function QX_Producer() {
case 'socks5':
return socks5(proxy);
case 'vless':
if (opts['include-unsupported-proxy']) {
return vless(proxy);
} else {
throw new Error(
`Platform ${targetPlatform}(App Store Release) does not support proxy type: ${proxy.type}`,
);
}
return vless(proxy);
}
throw new Error(
`Platform ${targetPlatform} does not support proxy type: ${proxy.type}`,
Expand Down

0 comments on commit 0b5761e

Please sign in to comment.