Skip to content

Commit

Permalink
Showing 3 changed files with 9 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.16.12",
"version": "2.16.13",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {
1 change: 1 addition & 0 deletions backend/src/restful/download.js
Original file line number Diff line number Diff line change
@@ -441,6 +441,7 @@ async function downloadCollection(req, res) {
$options,
proxy,
noCache,
ua: reqUA,
});
let subUserInfoOfSub;
// forward flow header from the first subscription in this collection
8 changes: 7 additions & 1 deletion backend/src/restful/sync.js
Original file line number Diff line number Diff line change
@@ -216,6 +216,12 @@ async function produceArtifact({
await Promise.all(
subnames.map(async (name) => {
const sub = findByName(allSubs, name);
const passThroughUA = sub.passThroughUA;
if (passThroughUA) {
$.info(
`订阅开启了透传 User-Agent, 使用请求的 User-Agent: ${ua}`,
);
}
try {
$.info(`正在处理子订阅:${sub.name}...`);
let raw;
@@ -237,7 +243,7 @@ async function produceArtifact({
try {
return await download(
url,
sub.ua,
ua || sub.ua,
undefined,
proxy ||
sub.proxy ||

0 comments on commit 03e320c

Please sign in to comment.