This commit is contained in:
Ingo Oppermann 2024-10-04 17:10:15 +02:00
parent b73111234e
commit 31cc825bfb
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -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';
}