fix(rules): remove unnecessary comments from final rules in configuration files

This commit is contained in:
Chang lue Tsen 2025-04-29 16:19:03 +09:00
parent bbe7b8c223
commit 94416d59a6
3 changed files with 3 additions and 3 deletions

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, "MATCH,手动选择")
return yaml.Marshal(&rawConfig)
}

View File

@ -49,7 +49,7 @@ func BuildSurfboard(servers proxy.Adapter, siteName string, user UserInfo) []byt
}
//final rule
rules += "# 最终规则" + "\r\n" + "FINAL, 手动选择"
rules += "FINAL, 手动选择"
file, err := configFiles.ReadFile("default.tpl")
if err != nil {

View File

@ -71,7 +71,7 @@ func (m *Surge) Build(uuid, siteName string, user UserInfo) []byte {
rules += rule + "\r\n"
}
//final rule
rules += "# 最终规则" + "\r\n" + "FINAL,手动选择,dns-failed"
rules += "\r\n" + "FINAL,手动选择,dns-failed"
file, err := configFiles.ReadFile("default.tpl")
if err != nil {