mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-12-05 11:28:32 +00:00
ParseProxy built the outbound and then returned early if the smux options failed to decode or NewSingMux failed, without closing it. Outbounds that acquire process-wide state in their constructor kept it: EasyTier and Tailscale register a DNS client by name and only remove it in Close, so a failed parse left a client behind that a later outbound of the same name would replace and then delete. Close the outbound on both error paths and keep the wrapped value in a separate variable so a failed NewSingMux cannot shadow the proxy that needs closing.