Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/music/stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
}
// Otherwise, send it via the backend
else {
$Master_Host = setting('MasterServerIP');
$Master_Host _or(preg_replace('@(.*?:.*)@', "[$1]",
setting('MasterServerName')), "127.0.0.1");
$port = _or(get_backend_setting('BackendStatusPort', $Master_Host),
get_backend_setting('BackendStatusPort'));
if (stripos($Master_Host,':') !== false) {
Expand Down
3 changes: 2 additions & 1 deletion modules/status/handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
**/

// Get the address/port of the master machine, enclose IPv6 with []
$masterhost = preg_replace('@(.*?:.*)@', "[$1]", setting('MasterServerIP'));
$masterhost = _or(preg_replace('@(.*?:.*)@', "[$1]",
setting('MasterServerName')), "127.0.0.1");
$statusport = setting('BackendStatusPort', '%');

// XML mode?
Expand Down
3 changes: 2 additions & 1 deletion modules/video/stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
header('Content-Disposition: filename="'.$fname.'"');

// Send data via the backend
$Master_Host = setting('MasterServerIP');
$Master_Host = _or(preg_replace('@(.*?:.*)@', "[$1]",
setting('MasterServerName')), "127.0.0.1");
$port = _or(get_backend_setting('BackendStatusPort', $Master_Host),
get_backend_setting('BackendStatusPort'));
if (stripos($Master_Host,':') !== false) {
Expand Down