feat: 提高base64订阅的兼容性

This commit is contained in:
cmliu
2025-07-23 01:50:29 +08:00
parent 0542c8e9a8
commit da1f543693
2 changed files with 3 additions and 3 deletions

View File

@@ -1717,7 +1717,7 @@ async function 生成配置信息(userID, hostName, sub, UA, RproxyIP, _url, fak
} else {
const response = await fetch(url, {
headers: {
'User-Agent': UA + atob('IENGLVdvcmtlcnMtZWRnZXR1bm5lbC9jbWxpdQ==')
'User-Agent': (isBase64 ? 'v2rayN' : UA) + atob('IENGLVdvcmtlcnMtZWRnZXR1bm5lbC9jbWxpdQ==')
}
});
content = await response.text();