Rename (*KnownHosts).Load to LoadDefault

This commit is contained in:
adnano
2020-10-12 16:56:26 -04:00
parent 0bac966b23
commit 4770ad9112
4 changed files with 16 additions and 12 deletions

View File

@@ -20,7 +20,7 @@ var (
func init() {
// Initialize the client
client.KnownHosts.Load() // Load known hosts
client.KnownHosts.LoadDefault() // Load known hosts
client.TrustCertificate = func(hostname string, cert *x509.Certificate, knownHosts *gmi.KnownHosts) error {
err := knownHosts.Lookup(hostname, cert)
if err != nil {