Repository navigation
v0.2.2 — connections view, faster whois, shell completion
Adds a live connections view, speeds up the whois node scan, and ships zsh tab-completion.
Added
net-auto-switch connections— list what the machine is contacting right now and through which outbound node, read from Clash's/connectionsAPI (host → node → rule). Rows are folded byhost + nodewith a connection count (--rawlists each);--whoislabels each target's IP / operator / country, resolving the domain itself when Clash exposes no IP (proxied connections);-w/--watchrefreshes live. It only sees traffic that goes through Clash (proxied / TUN), not direct/bypassed traffic.- zsh tab-completion for every subcommand and flag, bundled in the release tarball and registered idempotently by
install.sh— re-installing never duplicates the~/.zshrcblock, andupdaterefreshes the completion in place.
Changed
- The
whoisClash-profile scan now runs lookups concurrently (≤8) and prints per-server[n/N]progress to stderr, so a 32-node profile no longer looks frozen for minutes. The stdout table is unchanged.
Install:
curl -fsSL https://raw.githubusercontent.com/OctopusGarage/net-auto-switch/main/install.sh | bashFull Changelog: v0.2.1...v0.2.2