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:
parent
9a19477796
commit
f468d6e947
4
packages/node_modules/node-red/red.js
vendored
4
packages/node_modules/node-red/red.js
vendored
@ -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.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user