Skip to content

Let netwp ports <ip> accept a custom --ports=<list> #74

Description

@gsjonio

What & why

netwp scan accepts --ports=22,80,443 to probe a custom TCP set, but the single-device netwp ports <ip> always uses the curated default. Allowing the same flag there makes it useful for checking a specific service on one host.

Where

  • cmd/netwp/scan.go (runPorts), reusing the existing parsePorts / portsFlag helpers.

Scope

  • When --ports=<list> is present, probe that set instead of the default; otherwise unchanged.
  • Works with --json too. Document in help text and both READMEs.

Acceptance

  • netwp ports 192.168.1.1 --ports=22,443 probes only those.
  • Full verify suite clean.

Good first issue: reuses parsePorts; small wiring change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions