implement MIN_STREAMING_PORT for Multi-server

This commit is contained in:
Isaac Connor 2018-04-11 13:50:03 -07:00
parent 4ec595a98d
commit 47b871ed9f
1 changed files with 3 additions and 0 deletions

View File

@ -199,6 +199,9 @@ private $control_fields = array(
if ( isset($this->{'ServerId'}) and $this->{'ServerId'} ) {
$Server = new Server( $this->{'ServerId'} );
$streamSrc .= $Server->Hostname();
if ( ZM_MIN_STREAMING_PORT ) {
$streamSrc .= ':'.(ZM_MIN_STREAMING_PORT+$this->{'Id'});
}
} else if ( ZM_MIN_STREAMING_PORT ) {
$streamSrc .= $_SERVER['SERVER_NAME'].':'.(ZM_MIN_STREAMING_PORT+$this->{'Id'});
} else {