diff --git a/src/components/home/current-proxy-card.tsx b/src/components/home/current-proxy-card.tsx index cfe31c837..4a81e52ec 100644 --- a/src/components/home/current-proxy-card.tsx +++ b/src/components/home/current-proxy-card.tsx @@ -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()) diff --git a/src/components/proxy/proxy-groups.tsx b/src/components/proxy/proxy-groups.tsx index 71ad947e5..b51f64eec 100644 --- a/src/components/proxy/proxy-groups.tsx +++ b/src/components/proxy/proxy-groups.tsx @@ -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])