This commit is contained in:
arraykeys@gmail.com
2018-12-21 17:54:37 +08:00
parent ed1e7253f3
commit e5bf95bdc8

View File

@ -521,7 +521,7 @@ func (s *HTTP) ConnectSSH() (err error) {
}
s.sshClient, err = ssh.Dial("tcp", s.Resolve(s.lb.Select("", *s.cfg.LoadBalanceOnlyHA)), &config)
if err != nil {
s.log.Printf("connect to ssh %s fail", s.sshClient.RemoteAddr())
s.log.Printf("connect to ssh %s fail", s.cfg.Parent)
}
<-s.lockChn
return