From 6faf525af0dfcac5d062202c5917334a0c57da16 Mon Sep 17 00:00:00 2001 From: Ryan <63696351+Rain-kl@users.noreply.github.com> Date: Sat, 8 Aug 2026 20:30:17 +0800 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- internal/apps/openflare/option/openresty_validators.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/apps/openflare/option/openresty_validators.go b/internal/apps/openflare/option/openresty_validators.go index 6ed8f8a3..775358d6 100644 --- a/internal/apps/openflare/option/openresty_validators.go +++ b/internal/apps/openflare/option/openresty_validators.go @@ -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) }