Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ioppermann committed Oct 4, 2024
1 parent b731112 commit 31cc825
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/restreamer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 31cc825

Please sign in to comment.