feat: 以 #noFlow 结尾的远程链接不查询订阅流量信息

This commit is contained in:
xream 2024-01-16 07:07:55 +08:00
parent 8c943176a5
commit 812f24d102
No known key found for this signature in database
GPG Key ID: 1D2C5225471789F9

View File

@ -10,6 +10,9 @@ export function getFlowField(headers) {
return headers[subkey]; return headers[subkey];
} }
export async function getFlowHeaders(url, ua, timeout) { export async function getFlowHeaders(url, ua, timeout) {
if (url.endsWith('#noFlow')) {
return;
}
let $arguments = {}; let $arguments = {};
const rawArgs = url.split('#'); const rawArgs = url.split('#');
if (rawArgs.length > 1) { if (rawArgs.length > 1) {