1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-16 22:06:59 +00:00

Fix redundant ssh tunnels for hosts

This commit is contained in:
galal-hussein 2017-12-09 03:23:02 +02:00
parent 3d8982af98
commit de35ae3bae

View File

@ -51,6 +51,9 @@ func (d *dialer) Dial(network, addr string) (net.Conn, error) {
}
func (h *Host) TunnelUp() error {
if h.DClient != nil {
return nil
}
logrus.Infof("[ssh] Setup tunnel for host [%s]", h.Address)
key, err := checkEncryptedKey(h.SSHKey, h.SSHKeyPath)
if err != nil {