From 31cc825bfbca56b95f623a55018d9b8cf9233847 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Fri, 4 Oct 2024 17:10:15 +0200 Subject: [PATCH] Fix datarhei/restreamer#819 --- src/utils/restreamer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils/restreamer.js b/src/utils/restreamer.js index f43fb76..f974a31 100644 --- a/src/utils/restreamer.js +++ b/src/utils/restreamer.js @@ -827,6 +827,11 @@ class Restreamer { // Set defaults for the port if it's not set. let port = address.port; + if (config.http.secure) { + let [, tls_port] = splitHostPort(val.config.tls.address); + port = tls_port; + } + if (port.length === 0) { port = config.http.secure ? '443' : '80'; }