vod: fix bind configuration (fix #477)

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/488/head
Varun Patil 2023-03-12 21:58:10 +00:00
parent f876f5d41c
commit 6bff20fad2
1 changed files with 2 additions and 1 deletions

View File

@ -271,7 +271,8 @@ class VideoController extends ApiBase
{
$config = \OC::$server->get(\OCP\IConfig::class);
$path = rawurlencode($path);
$port = $config->getSystemValue('memories.govod_port', 47788);
$bind = $config->getSystemValue('memories.vod.bind', '127.0.0.1:47788');
$port = explode(':', $bind)[1];
return "http://127.0.0.1:{$port}/{$client}{$path}/{$profile}";
}