fix: pull the mihomo subscription directly #58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/mihomo-subscription-direct"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
mihomopulls its proxy provider itself, and with TUN enabled that request is captured and matched like any other traffic — so it leaves through the tunnel it is about to feed. Once the subscription rotates its nodes (a REALITY short id changes) the cached nodes stop passing the handshake, and the refresh cannot go through them: the provider is stuck on stale servers and never recovers on its own.The rendered config now sends the subscription host DIRECT, next to the existing DIRECT rules for the local networks, before the host's own
mihomo_direct_domains.No guard is needed around the rule: the role asserts
mihomo_subscription_url | length > 0before it renders the config, sourlsplit('hostname')always yields a host. Verified by rendering the template with a URL carrying a port — the rule comes out asDOMAIN-SUFFIX,sub.example.com,DIRECTand the file still parses as YAML.