feat: 去除订阅流量信息中空字段, 增强兼容性

This commit is contained in:
xream
2025-02-02 18:39:46 +08:00
parent 38f5a97a20
commit 9ac5e136a6
3 changed files with 13 additions and 4 deletions

View File

@@ -146,7 +146,10 @@ async function getFile(req, res) {
proxy || file.proxy,
);
if (flowInfo) {
res.set('subscription-userinfo', flowInfo);
res.set(
'subscription-userinfo',
flowInfo.replace(/\s*;\s*;\s*/g, ';'),
);
}
}
} catch (err) {