Merge manually

This commit is contained in:
Louis Lam 2023-12-11 02:36:08 +08:00
parent 869ee8ec50
commit 719ef856e8
7 changed files with 51 additions and 57 deletions

View file

@ -19,6 +19,10 @@ const sslKeyPassphrase = args["ssl-key-passphrase"] || process.env.UPTIME_KUMA_S
const isSSL = sslKey && sslCert;
/**
* Get the local WebSocket URL
* @returns {string} The local WebSocket URL
*/
function getLocalWebSocketURL() {
const protocol = isSSL ? "wss" : "ws";
const host = hostname || "localhost";