aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/client/client.go2
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
}
}