mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-17 16:45:17 +08:00
优化代码
This commit is contained in:
@@ -252,7 +252,7 @@ func (this *SSLPolicy) certIsEqual(cert1 tls.Certificate, cert2 tls.Certificate)
|
||||
}
|
||||
|
||||
for index, b := range b1 {
|
||||
if bytes.Compare(b, b2[index]) != 0 {
|
||||
if !bytes.Equal(b, b2[index]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user