feat(docker): set port default to 22 if not set (#672)

* feat(docker): set port default to 22 if not set

* fix(go): fmt space issue
This commit is contained in:
ElevenNotes 2025-11-06 14:37:02 +01:00 committed by GitHub
parent d44dac779b
commit aa4c1292e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -104,6 +104,8 @@ func (p *plugin) list() ([]pipe, error) {
port := c.Labels["sshpiper.port"]
if port != "" {
pipe.Host = net.JoinHostPort(pipe.Host, port)
} else {
pipe.Host = net.JoinHostPort(pipe.Host, "22")
}
pipes = append(pipes, pipe)