mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-12-01 00:49:46 +00:00
The mihomo merge-mode producer already reads opts.localPort, but download.js never forwards it from the query, so the start port is always the hard-coded 65535. Two SurgeMac merge subscriptions therefore get overlapping local SOCKS5 port ranges and their mihomo cores race to bind the same 127.0.0.1 ports, silently cross-wiring policies between subscriptions. Plumb mihomoLocalPort (validated 1-65535) through produceOpts.localPort in both download handlers, mirroring mihomoMerge / mihomoMergeName (#588). No producer change; defaults to 65535 when absent.