mirror of
https://github.com/rancher/rke.git
synced 2025-08-10 11:13:44 +00:00
Merge pull request #127 from galal-hussein/fix_redundant_tunnels
Fix redundant ssh tunnels for hosts
This commit is contained in:
commit
b01166cf68
@ -51,6 +51,9 @@ func (d *dialer) Dial(network, addr string) (net.Conn, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (h *Host) TunnelUp() error {
|
func (h *Host) TunnelUp() error {
|
||||||
|
if h.DClient != nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
logrus.Infof("[ssh] Setup tunnel for host [%s]", h.Address)
|
logrus.Infof("[ssh] Setup tunnel for host [%s]", h.Address)
|
||||||
key, err := checkEncryptedKey(h.SSHKey, h.SSHKeyPath)
|
key, err := checkEncryptedKey(h.SSHKey, h.SSHKeyPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user