From 55060d422a3afcb8398a4b49d6612bd7d89eb53a Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Mon, 29 Jun 2026 03:14:03 +0800 Subject: [PATCH] fix: include url-test groups in proxy selectors --- src/components/home/current-proxy-card.tsx | 7 +++++-- src/components/proxy/proxy-groups.tsx | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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])