Skip to content

Commit 81c27b9

Browse files
adaexclaude
andcommitted
fix: remove dropped group references from other groups' proxies lists
🎥 奈飞视频 referenced 🎥 奈飞节点 which was dropped, causing mihomo parse failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0747c42 commit 81c27b9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/output.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ function reorderBestGroups(groups: Record<string, unknown>[]): Record<string, un
369369
return [...head, ...regions, ...rest].map(g => {
370370
const newName = BEST_RENAME_GROUPS[String(g.name)];
371371
const proxies = g.proxies as string[] | undefined;
372-
const renamedProxies = proxies?.map(p => BEST_RENAME_GROUPS[p] ?? p);
372+
const renamedProxies = proxies
373+
?.filter(p => !DROP_GROUP_NAMES.has(p))
374+
.map(p => BEST_RENAME_GROUPS[p] ?? p);
373375
return {
374376
...g,
375377
...(newName ? { name: newName } : {}),

0 commit comments

Comments
 (0)