diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index b5d95f83f..fd464d72d 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -199,11 +199,11 @@ private $control_fields = array( if ( isset($this->{'ServerId'}) and $this->{'ServerId'} ) { $Server = new Server( $this->{'ServerId'} ); $streamSrc .= $Server->Hostname(); + } else if ( ZM_MIN_STREAMING_PORT ) + $streamSrc .= $_SERVER['SERVER_NAME'].':'.(ZM_MIN_STREAMING_PORT+$this->{'Id'}); } else { $streamSrc .= $_SERVER['HTTP_HOST']; } - if ( ZM_MIN_STREAMING_PORT ) - $streamSrc .= ':'. (ZM_MIN_STREAMING_PORT+$this->{'Id'}); $streamSrc .= ZM_PATH_ZMS; $args['monitor'] = $this->{'Id'};