diff options
| author | adnano <[email protected]> | 2020-09-26 13:35:56 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-09-26 13:35:56 -0400 |
| commit | 769b6ff4d911c05dad9ae0478588e4b7927f3ae9 (patch) | |
| tree | d33f22c78e6798f65021a2cf9e8e6457fb1e7a2b /README.md | |
| parent | Remove (*KnownHosts).Has function (diff) | |
| download | go-gemini-769b6ff4d911c05dad9ae0478588e4b7927f3ae9.tar.xz go-gemini-769b6ff4d911c05dad9ae0478588e4b7927f3ae9.zip | |
Implement default known hosts path
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); { |