1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Rename fix

This commit is contained in:
bartbutenaers 2020-05-02 14:40:01 +02:00 committed by GitHub
parent 9a19477796
commit f468d6e947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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