mirror of https://github.com/v2ray/v2ray-core
switch to bytes.Equal
parent
1089a887e0
commit
248099eca5
|
@ -3,10 +3,9 @@
|
|||
package tls
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"crypto/x509"
|
||||
"sync"
|
||||
|
||||
"v2ray.com/core/common/compare"
|
||||
)
|
||||
|
||||
type certPoolCache struct {
|
||||
|
@ -18,7 +17,7 @@ type certPoolCache struct {
|
|||
|
||||
func (c *certPoolCache) hasCert(cert []byte) bool {
|
||||
for _, xCert := range c.extraCerts {
|
||||
if compare.BytesEqual(xCert, cert) {
|
||||
if bytes.Equal(xCert, cert) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue