chore: 增加部分 clash.meta(mihomo) 内核客户端的 User-Agent(clash-verge, flclash)

This commit is contained in:
xream
2024-07-20 14:48:39 +08:00
parent 1da129a76c
commit 45f00fc002
2 changed files with 4 additions and 2 deletions

View File

@@ -28,7 +28,9 @@ export function getPlatformFromUserAgent({ ua, UA }) {
return 'Stash';
} else if (
ua === 'meta' ||
(ua.indexOf('clash') !== -1 && ua.indexOf('meta') !== -1)
(ua.indexOf('clash') !== -1 && ua.indexOf('meta') !== -1) ||
ua.indexOf('clash-verge') !== -1 ||
ua.indexOf('flclash') !== -1
) {
return 'ClashMeta';
} else if (ua.indexOf('clash') !== -1) {