diff options
| author | adnano <[email protected]> | 2020-09-27 16:06:17 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-09-27 16:06:17 -0400 |
| commit | 32a9fcba0c921a2300a95b7410c0c6d7c025a0ca (patch) | |
| tree | 26e2490db7aef1a47c42f556dc12e204309d97bd /examples | |
| parent | Temporarily allow common names in certificates (diff) | |
| download | go-gemini-32a9fcba0c921a2300a95b7410c0c6d7c025a0ca.tar.xz go-gemini-32a9fcba0c921a2300a95b7410c0c6d7c025a0ca.zip | |
Fix hosts not being added to known hosts file
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/client/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client/client.go b/examples/client/client.go index e6be51d..387fb47 100644 --- a/examples/client/client.go +++ b/examples/client/client.go @@ -37,7 +37,7 @@ func init() { return nil } else if userTrustsCertificatePermanently() { // Add the certificate to the known hosts file - knownHosts.Add(cert) + knownHosts.Add(req.Hostname(), cert) return nil } } |