do string compare in certs

This commit is contained in:
Girish Ramakrishnan
2022-11-30 09:54:35 +01:00
parent 7e1c56161d
commit 15cc624fa5
2 changed files with 4 additions and 2 deletions

View File

@@ -368,7 +368,7 @@ async function stop() {
async function handleCertChanged() {
const certificate = await reverseProxy.getDirectoryServerCertificate();
if (certificate.cert.equals(gCertificate.cert)) {
if (certificate.cert === gCertificate.cert) {
debug('handleCertChanged: certificate has not changed');
return;
}