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

This commit is contained in:
xream
2024-01-16 07:07:55 +08:00
parent f9eae3ec10
commit b879d16442

View File

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