mirror of
https://github.com/v2fly/domain-list-community.git
synced 2026-09-05 02:14:46 +03:00
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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user