Fix: reject malformed domain rules (#3917)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
This commit is contained in:
Copilot
2026-08-05 22:06:16 +08:00
committed by GitHub
parent 21f09bcdba
commit e449533a4a
3 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func exportSite(name string, gs *GeoSites) error {
}
defer file.Close()
w := bufio.NewWriter(file)
fmt.Fprintf(w, "%s:\n", name)
fmt.Fprintf(w, "%q:\n", name)
var b strings.Builder
b.Grow(64)
for _, vdomain := range vDomains {