From 26fc7f3b088470dbbe8ab0d0593c9f4fdba7e737 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 26 Aug 2024 07:08:31 +0200 Subject: [PATCH] Refactor the index.js file --- src/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 737f281..40cfe55 100644 --- a/src/index.js +++ b/src/index.js @@ -960,7 +960,11 @@ function listeningMessage() { if (domain != "") { if (process.serverConfig.secure && !sListenToLocalhost) serverconsole.locmessage( - "* https://" + domain + (spubport == 443 ? "" : ":" + spubport), + "* https://" + + domain + + (process.serverConfig.spubport == 443 + ? "" + : ":" + process.serverConfig.spubport), ); if ( !( @@ -1548,6 +1552,7 @@ process.messageEventListeners.push((worker, serverconsole) => { }; }); +let isWorkerHungUpBuff = true; let isWorkerHungUpBuff2 = true; function msgListener(message) {