ignore domain case in route rules

This commit is contained in:
Dmitry R
2023-02-02 13:14:43 +06:00
committed by 世界
parent 9e68d725c1
commit b692617b4e
3 changed files with 3 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ func (r *DomainKeywordItem) Match(metadata *adapter.InboundContext) bool {
if domainHost == "" {
return false
}
domainHost = strings.ToLower(domainHost)
for _, keyword := range r.keywords {
if strings.Contains(domainHost, keyword) {
return true