Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ryan
2026-08-08 20:30:17 +08:00
committed by GitHub
parent ca21ff3a5b
commit 6faf525af0
@@ -272,6 +272,9 @@ func validateSWOfflineDomains(key, value string) error {
if domain == "" {
return fmt.Errorf("%s 包含空域名", key)
}
if raw != domain {
return fmt.Errorf("%s 域名必须为小写且不含首尾空格:%s", key, raw)
}
if _, ok := seen[domain]; ok {
return fmt.Errorf("%s 包含重复域名 %s", key, domain)
}