mirror of
https://github.com/go-gost/x.git
synced 2026-10-19 16:16:32 +00:00
Fold the deprecated per-node filter (host/protocol/path) into an equivalent matcher DSL rule during config parsing, so hop.Select keeps a single filtering path (routing.Matcher). Legacy filter configs stay accepted. - filterToMatcherRule() maps host->Host(), protocol->Proto(), path->PathPrefix(); a leading-dot host emits `Host(x) || Host(.x)` to preserve the legacy apex+subdomain coverage. Converted rules get priority=-1 to keep the always-through-selector behavior of the legacy path. - Remove isEligible/checkHost/checkProtocol/checkPath from x/hop. core/ chain.NodeFilterSettings is left untouched (dead but harmless). - Migrate hop tests to matchers; add TestFilterToMatcherRule.