aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-09-26 13:35:56 -0400
committeradnano <[email protected]>2020-09-26 13:35:56 -0400
commit769b6ff4d911c05dad9ae0478588e4b7927f3ae9 (patch)
treed33f22c78e6798f65021a2cf9e8e6457fb1e7a2b /README.md
parentRemove (*KnownHosts).Has function (diff)
downloadgo-gemini-769b6ff4d911c05dad9ae0478588e4b7927f3ae9.tar.xz
go-gemini-769b6ff4d911c05dad9ae0478588e4b7927f3ae9.zip
Implement default known hosts path
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index bec4258..6b5988f 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@ clients. Here is a simple client using TOFU to authenticate certificates:
```go
client := &gemini.Client{
- KnownHosts: gemini.LoadKnownHosts(".local/share/gemini/known_hosts"),
+ KnownHosts: gemini.LoadKnownHosts(),
TrustCertificate: func(cert *x509.Certificate, knownHosts *gemini.KnownHosts) error {
// If the certificate is in the known hosts list, allow the connection
if err := knownHosts.Lookup(cert); {