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:
parent
d44dac779b
commit
aa4c1292e3
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue