From e617ffca2d02fd29eb4882f1b3596bebb6c37b95 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 21 Nov 2017 21:00:27 -0500 Subject: [PATCH] can't use BASE_URL since it will be empty. Have to construct a full URL when using MIN_STREAMING_PORT --- web/includes/Monitor.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index f8c9940c2..472bf58b7 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -185,11 +185,13 @@ private $control_fields = array( } public function getStreamSrc( $args, $querySep='&' ) { + + $streamSrc = ZM_BASE_PROTOCOL.'://'; if ( isset($this->{'ServerId'}) and $this->{'ServerId'} ) { $Server = new Server( $this->{'ServerId'} ); - $streamSrc = ZM_BASE_PROTOCOL.'://'.$Server->Hostname(); + $streamSrc .= $Server->Hostname(); } else { - $streamSrc = ZM_BASE_URL; + $streamSrc .= $_SERVER['HTTP_HOST'] ); } if ( ZM_MIN_STREAMING_PORT ) $streamSrc .= ':'. (ZM_MIN_STREAMING_PORT+$this->{'Id'});