ignore domain case in route rules
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user