mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-04 19:28:40 +00:00
Refine router config parse
This commit is contained in:
parent
68201a8898
commit
44317bd657
3 changed files with 26 additions and 8 deletions
|
@ -1,5 +1,7 @@
|
|||
package geosite
|
||||
|
||||
import "strings"
|
||||
|
||||
type AttributeList struct {
|
||||
matcher []AttributeMatcher
|
||||
}
|
||||
|
@ -25,7 +27,7 @@ type BooleanMatcher string
|
|||
|
||||
func (m BooleanMatcher) Match(domain *Domain) bool {
|
||||
for _, attr := range domain.Attribute {
|
||||
if attr.Key == string(m) {
|
||||
if strings.EqualFold(attr.GetKey(), string(m)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue