优化代码

This commit is contained in:
刘祥超
2023-08-08 15:12:28 +08:00
parent 3c5c961cd5
commit 6a2803187e
21 changed files with 61 additions and 78 deletions

View File

@@ -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
}
}