Skip to content

Commit

Permalink
fix: 修复多行订阅流量(仅传递首个订阅的流量信息)
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Dec 1, 2023
1 parent 53dd1fd commit bf9210f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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.107",
"version": "2.14.108",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion backend/src/utils/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { HTTP } from '@/vendor/open-api';
export async function getFlowHeaders(url) {
const http = HTTP();
const { headers } = await http.get({
url,
url: url
.split(/[\r\n]+/)
.map((i) => i.trim())
.filter((i) => i.length)[0],
headers: {
'User-Agent': 'Quantumult%20X/1.0.30 (iPhone14,2; iOS 15.6)',
},
Expand Down

0 comments on commit bf9210f

Please sign in to comment.