diff options
| author | Adnan Maolood <[email protected]> | 2020-11-25 14:20:31 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2020-11-25 14:20:31 -0500 |
| commit | 8ee55ee009fa38474a71681e3fe58452cf75c1fb (patch) | |
| tree | 3b5597a9e874465cfe307b08d0ff40ce781f83ee | |
| parent | Use base64 to encode fingerprints (diff) | |
| download | go-gemini-8ee55ee009fa38474a71681e3fe58452cf75c1fb.tar.xz go-gemini-8ee55ee009fa38474a71681e3fe58452cf75c1fb.zip | |
Fix certificate fingerprint check
| -rw-r--r-- | client.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -241,7 +241,7 @@ func (c *Client) verifyConnection(req *Request, cs tls.ConnectionState) error { } fingerprint := NewFingerprint(cert.Raw, cert.NotAfter) - if !bytes.Equal(knownHost.Raw, fingerprint.Raw) { + if bytes.Equal(knownHost.Raw, fingerprint.Raw) { return nil } return errors.New("gemini: fingerprint does not match") |