Geodata: Cleanup unneeded matchers & domain: ignore case (#6342)

Completes https://github.com/XTLS/Xray-core/pull/6139
This commit is contained in:
Meow authored and GitHub committed 2026-06-19 12:02:27 +00:00
1 parent 8734774e4a
commit be8009c625
5 files changed
+51 -21

No files matched your search

+1 -1
View File
@@ -220,7 +220,7 @@ func parseDomain(d *Domain) (strmatcher.Matcher, error) {
case Domain_Regex:
return strmatcher.Regex.New(d.Value)
case Domain_Domain:
return strmatcher.Domain.New(d.Value)
return strmatcher.Domain.New(strings.ToLower(d.Value))
case Domain_Full:
return strmatcher.Full.New(strings.ToLower(d.Value))
default: