Add method to check if hostname is found in KnownHosts

This commit is contained in:
adnano
2020-09-25 20:22:48 -04:00
parent 53d84882ea
commit eaa034204a
4 changed files with 31 additions and 12 deletions

View File

@@ -15,10 +15,7 @@ import (
var (
client = &gemini.Client{
VerifyCertificate: func(cert *x509.Certificate) error {
// if gemini.Fingerprint(cert) != expected {
// return errors.New("invalid server certificate")
// }
VerifyCertificate: func(cert *x509.Certificate, req *gemini.Request) error {
return nil
},
}