checker: make port 22 probe optional

Port 22 is now the default when no ports are configured, rather than
being unconditionally appended. Users can now probe non-standard ports
without also probing port 22.
This commit is contained in:
nemunaire 2026-05-15 17:18:49 +08:00
commit bf28f6a8b2
3 changed files with 6 additions and 7 deletions

View file

@ -48,9 +48,9 @@ func (p *sshProvider) Definition() *sdk.CheckerDefinition {
{
Id: OptionPorts,
Type: "string",
Label: "Additional ports",
Label: "Ports",
Placeholder: "22, 2222",
Description: "Comma-separated list of additional TCP ports to probe. Port 22 is always probed.",
Description: "Comma-separated list of TCP ports to probe. Defaults to port 22 when empty.",
Default: "",
},
{