feat(proxy): enhance proxy group handling and sorting logic

This commit is contained in:
Chang lue Tsen
2025-07-16 14:17:36 -04:00
committed by Leif Draven
parent 979e39b9e5
commit 97024dd1df
6 changed files with 113 additions and 37 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ func (c *Clash) Build(uuid string) ([]byte, error) {
})
}
rawConfig.ProxyGroups = groups
rawConfig.Rules = append(c.Rules, "MATCH,手动选择")
rawConfig.Rules = append(c.Rules, fmt.Sprintf("MATCH,%s", c.Default))
return yaml.Marshal(&rawConfig)
}