mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-11-25 03:38:34 +00:00
fix: DOMAIN-WILDCARD ignores sniffed hostname (#2956)
This commit is contained in:
1 parent
6a52d23a13
commit
c5834396c4
1 file changed
+1
-1
@@ -18,7 +18,7 @@ func (dw *DomainWildcard) RuleType() C.RuleType {
|
||||
}
|
||||
|
||||
func (dw *DomainWildcard) Match(metadata *C.Metadata, _ C.RuleMatchHelper) (bool, string) {
|
||||
return wildcard.Match(dw.pattern, metadata.Host), dw.adapter
|
||||
return wildcard.Match(dw.pattern, metadata.RuleHost()), dw.adapter
|
||||
}
|
||||
|
||||
func (dw *DomainWildcard) Adapter() string {
|
||||
|
||||
Reference in new issue
Block a user