Skip to content

fix: DOMAIN-WILDCARD ignores sniffed hostname - #2956

Merged
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
AaronChen0:rules
Jul 10, 2026
Merged

fix: DOMAIN-WILDCARD ignores sniffed hostname#2956
wwqgtxx merged 1 commit into
MetaCubeX:Alphafrom
AaronChen0:rules

Conversation

@AaronChen0

Copy link
Copy Markdown

The code uses metadata.Host instead of metadata.RuleHost(). Every other domain rule (DOMAIN, DOMAIN-SUFFIX, DOMAIN-KEYWORD, DOMAIN-REGEX) uses RuleHost(), so a wildcard rule won't match a host discovered via sniffing, unlike its siblings.

@wwqgtxx
wwqgtxx merged commit c583439 into MetaCubeX:Alpha Jul 10, 2026
@AaronChen0
AaronChen0 deleted the rules branch July 10, 2026 11:58
kuno pushed a commit to kuno/mihomo that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants