From 248099eca50ffe45b432bd0c93f4172aa76f0e38 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Fri, 16 Nov 2018 17:00:16 +0100 Subject: [PATCH] switch to bytes.Equal --- transport/internet/tls/config_other.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/transport/internet/tls/config_other.go b/transport/internet/tls/config_other.go index 40845f8da..fc2ae23db 100644 --- a/transport/internet/tls/config_other.go +++ b/transport/internet/tls/config_other.go @@ -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 } }