httpsRefreshInterval in seconds

This commit is contained in:
bartbutenaers 2020-05-02 22:24:04 +02:00 committed by GitHub
parent e16f48c9fd
commit f7e0f55c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ if (settings.https) {
if (settings.httpsRefreshInterval) {
if (typeof startupHttps === "function") {
if (server.setSecureContext) {
console.log("Refreshing https settings every " + parseInt(settings.httpsRefreshInterval) + " mseconds.");
console.log("Refreshing https settings every " + parseInt(settings.httpsRefreshInterval) + " seconds.");
setInterval(function () {
try {
// Get the result of the function, because createServer doesn't accept functions as input
@ -175,7 +175,7 @@ if (settings.https) {
} catch(err) {
console.log("Failed to refresh the https settings: " + err);
}
}, parseInt(settings.httpsRefreshInterval));
}, parseInt(settings.httpsRefreshInterval)*1000);
} else {
console.log("Cannot refresh the https settings automatically, because NodeJs version 11 or above is required.");
}