mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to 539be170
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
4
vendor/github.com/moby/buildkit/util/sshutil/keyscan.go
generated
vendored
4
vendor/github.com/moby/buildkit/util/sshutil/keyscan.go
generated
vendored
@ -23,7 +23,7 @@ func addDefaultPort(hostport string, defaultPort int) string {
|
||||
return hostport
|
||||
}
|
||||
|
||||
// SshKeyScan scans a ssh server for the hostkey; server should be in the form hostname, or hostname:port
|
||||
// SSHKeyScan scans a ssh server for the hostkey; server should be in the form hostname, or hostname:port
|
||||
func SSHKeyScan(server string) (string, error) {
|
||||
var key string
|
||||
KeyScanCallback := func(hostport string, remote net.Addr, pubKey ssh.PublicKey) error {
|
||||
@ -45,7 +45,7 @@ func SSHKeyScan(server string) (string, error) {
|
||||
err = nil
|
||||
}
|
||||
if conn != nil {
|
||||
conn.Close()
|
||||
_ = conn.Close()
|
||||
}
|
||||
return key, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user