mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-03-20 08:12:42 +08:00
feat: VLESS URI 输入兼容 Shadowrocket 导出格式
This commit is contained in:
@@ -31,7 +31,7 @@ export async function getFlowHeaders(url, ua, timeout) {
|
||||
const cached = headersResourceCache.get(url);
|
||||
let flowInfo;
|
||||
if (!$arguments?.noCache && cached) {
|
||||
$.info(`使用缓存的流量信息: ${url}`);
|
||||
// $.info(`使用缓存的流量信息: ${url}`);
|
||||
flowInfo = cached;
|
||||
} else {
|
||||
const { defaultFlowUserAgent, defaultTimeout } = $.read(SETTINGS_KEY);
|
||||
@@ -42,7 +42,7 @@ export async function getFlowHeaders(url, ua, timeout) {
|
||||
const requestTimeout = timeout || defaultTimeout;
|
||||
const http = HTTP();
|
||||
try {
|
||||
$.info(`使用 HEAD 方法获取流量信息: ${url}`);
|
||||
// $.info(`使用 HEAD 方法获取流量信息: ${url}`);
|
||||
const { headers } = await http.head({
|
||||
url: url
|
||||
.split(/[\r\n]+/)
|
||||
|
||||
Reference in New Issue
Block a user