config: connect: ssh_command parameter did not work

This commit is contained in:
Christian Schwarz 2017-10-05 20:11:04 +02:00
parent 72d288567e
commit 4b489ad2c7

View File

@ -77,7 +77,7 @@ func Outgoing(remote SSHTransport) (s OutgoingSSHByteStream, err error) {
var sshCommand = SSHCommand var sshCommand = SSHCommand
if len(remote.SSHCommand) > 0 { if len(remote.SSHCommand) > 0 {
sshCommand = SSHCommand sshCommand = remote.SSHCommand
} }
if s.c, err = util.NewIOCommand(sshCommand, sshArgs, util.IOCommandStderrBufSize); err != nil { if s.c, err = util.NewIOCommand(sshCommand, sshArgs, util.IOCommandStderrBufSize); err != nil {