From e325b9a39a67c2f59c5342468c82903c8ece2681 Mon Sep 17 00:00:00 2001 From: xream Date: Mon, 13 Jan 2025 16:02:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Loon=20=E6=8E=92=E9=99=A4=20XTLS;=20?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=BD=BF=E7=94=A8=20esbuild=20=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 18 +++++++++--------- backend/package.json | 3 ++- backend/src/core/proxy-utils/producers/loon.js | 4 ++-- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73f511e..66c1921 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,18 +27,18 @@ jobs: run: | npm install -g pnpm cd backend && pnpm i --no-frozen-lockfile - - name: Test - run: | - cd backend - pnpm test - - name: Build - run: | - cd backend - pnpm run build + # - name: Test + # run: | + # cd backend + # pnpm test + # - name: Build + # run: | + # cd backend + # pnpm run build - name: Bundle run: | cd backend - pnpm run bundle + pnpm bundle:esbuild - id: tag name: Generate release tag run: | diff --git a/backend/package.json b/backend/package.json index e339165..4a83f04 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.16.11", + "version": "2.16.12", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", "main": "src/main.js", "scripts": { @@ -12,6 +12,7 @@ "dev:run": "nodemon -w sub-store.min.js sub-store.min.js", "build": "gulp", "bundle": "node bundle.js", + "bundle:esbuild": "node bundle-esbuild.js", "changelog": "conventional-changelog -p cli -i CHANGELOG.md -s" }, "author": "Peng-YM", diff --git a/backend/src/core/proxy-utils/producers/loon.js b/backend/src/core/proxy-utils/producers/loon.js index 27bb654..671ed10 100644 --- a/backend/src/core/proxy-utils/producers/loon.js +++ b/backend/src/core/proxy-utils/producers/loon.js @@ -350,8 +350,8 @@ function vmess(proxy) { } function vless(proxy) { - if (proxy['reality-opts']) { - throw new Error(`VLESS REALITY is unsupported`); + if (typeof proxy.flow !== 'undefined' || proxy['reality-opts']) { + throw new Error(`VLESS XTLS/REALITY is not supported`); } const result = new Result(proxy); result.append(