Fix: reject malformed domain rules (#3917)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Loyalsoldier <[email protected]>
This commit is contained in:
CopilotandLoyalsoldier authored and GitHub committed 2026-08-05 22:06:16 +08:00
1 parent 21f09bcdba
commit e449533a4a
3 files changed
+35 -3

No files matched your search

+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 {