Refine vm ports output
Make banger vm ports single-target and collapse the old VM/WEB table shape into a simpler PROTO ENDPOINT PROCESS COMMAND view. Web listeners now surface directly as http or https, with clickable endpoints in the main endpoint column instead of a separate URL field. Classify TCP listeners with HTTPS-first probing so TLS services are not mislabeled as plain HTTP just because they answer bad cleartext requests with an HTTP error, then dedupe rows by rendered PROTO+ENDPOINT so dual-stack binds like 0.0.0.0 and :: only show once. Update the CLI/daemon regressions and README to match the new contract. Verified with GOCACHE=/tmp/banger-gocache go test ./..., make build, git diff --check, and ./banger vm ports --help.
This commit is contained in:
parent
5ad3b505dd
commit
3096de0a7f
6 changed files with 179 additions and 151 deletions
12
README.md
12
README.md
|
|
@ -110,9 +110,9 @@ banger vm ssh calm-otter
|
|||
When the SSH session exits normally, `banger` checks the guest over vsock and
|
||||
reminds you if the VM is still running.
|
||||
|
||||
Inspect host-reachable listening ports for one or more running VMs:
|
||||
Inspect host-reachable listening ports for a running VM:
|
||||
```bash
|
||||
banger vm ports calm-otter buildbox
|
||||
banger vm ports calm-otter
|
||||
```
|
||||
|
||||
Stop, restart, kill, or delete it:
|
||||
|
|
@ -252,10 +252,10 @@ guest IPv4 address. Integrate your local resolver separately if you want
|
|||
transparent `.vm` lookups on the host.
|
||||
|
||||
`banger vm ports` asks the guest-side `banger-vsock-agent` to run `ss`, then
|
||||
prints host-usable `<hostname>.vm:port` endpoints plus the owning
|
||||
process/command. TCP listeners get a short best-effort HTTP probe; when the
|
||||
probe sees a real HTTP response, the command includes a clickable
|
||||
`http://<hostname>.vm:port/` URL. Older images without `ss` may need rebuilding
|
||||
prints host-usable endpoints plus the owning process/command. TCP listeners get
|
||||
short best-effort HTTP and HTTPS probes; detected web listeners are shown as
|
||||
`http` or `https`, and the endpoint column becomes a clickable URL such as
|
||||
`https://<hostname>.vm:port/`. Older images without `ss` may need rebuilding
|
||||
before `vm ports` works.
|
||||
|
||||
## Storage Model
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue