Skip to content

v0.2.2 — connections view, faster whois, shell completion

Choose a tag to compare

@Kingson4Wu Kingson4Wu released this 15 Jun 18:47
· 30 commits to main since this release
faf4615

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 /connections API (host → node → rule). Rows are folded by host + node with a connection count (--raw lists each); --whois labels each target's IP / operator / country, resolving the domain itself when Clash exposes no IP (proxied connections); -w/--watch refreshes 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 ~/.zshrc block, and update refreshes the completion in place.

Changed

  • The whois Clash-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 | bash

Full Changelog: v0.2.1...v0.2.2