fix: include url-test groups in proxy selectors

This commit is contained in:
Tunglies
2026-06-29 03:14:03 +08:00
parent dad5121b7d
commit 55060d422a
2 changed files with 7 additions and 4 deletions
+5 -2
View File
@@ -376,8 +376,11 @@ export const CurrentProxyCard = () => {
}
;(proxies.groups || [])
.filter((g: { type?: string }) => g?.type === 'Selector')
.forEach((selectorGroup: any) => registerGroup(selectorGroup))
.filter(
(g: { type?: string }) =>
g?.type === 'Selector' || g?.type === 'URLTest',
)
.forEach((selectableGroup: any) => registerGroup(selectableGroup))
const filteredGroups = Array.from(groupsMap.values())
+2 -2
View File
@@ -113,9 +113,9 @@ export const ProxyGroups = (props: Props) => {
const groups = proxiesData?.groups
const availableGroups = useMemo(() => {
if (!groups) return []
// 在链式代理模式下,仅显示支持选择节点的 Selector 代理组
// 在链式代理模式下,仅显示支持选择节点的代理组
return isChainMode
? groups.filter((g: any) => g.type === 'Selector')
? groups.filter((g: any) => g.type === 'Selector' || g.type === 'URLTest')
: groups
}, [groups, isChainMode])