Skip to content

Commit

Permalink
Increase chance of renewing cert to 20%
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez Baquero committed Oct 20, 2023
1 parent 408cafe commit 7fdf283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/shim/src/modules/registration.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async function checkCertValidity(certBuffer, registerOptions, preregisterRespons
valid = false;
}

if (NETWORK === "main" && cert.subjectAltName && Math.random() < 10 / 100) {
if (NETWORK === "main" && cert.subjectAltName && Math.random() < 20 / 100) {
const subdomain = preregisterResponse?.ip?.replace(/\./g, "-");
const targetSAN = subdomain ? `${subdomain}.l1s.saturn.ms` : ".l1s.saturn.ms";

Expand Down

0 comments on commit 7fdf283

Please sign in to comment.