diff options
| author | adnano <[email protected]> | 2020-10-12 16:56:26 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-10-12 16:56:55 -0400 |
| commit | 4770ad9112ef9d9bf2c3140c68aedcee61adf657 (patch) | |
| tree | c7d3cada3dfdce17a7ab123622fb0f10c4d10f1d /examples | |
| parent | Update documentation (diff) | |
| download | go-gemini-4770ad9112ef9d9bf2c3140c68aedcee61adf657.tar.xz go-gemini-4770ad9112ef9d9bf2c3140c68aedcee61adf657.zip | |
Rename (*KnownHosts).Load to LoadDefault
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client.go b/examples/client.go index d2819ec..edea321 100644 --- a/examples/client.go +++ b/examples/client.go @@ -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 { |