diff --git a/lib/Controller/VideoController.php b/lib/Controller/VideoController.php index 3189dbc3..ddb80049 100644 --- a/lib/Controller/VideoController.php +++ b/lib/Controller/VideoController.php @@ -271,10 +271,11 @@ class VideoController extends ApiBase { $config = \OC::$server->get(\OCP\IConfig::class); $path = rawurlencode($path); - $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}"; + $bind = $config->getSystemValue('memories.vod.bind', '127.0.0.1:47788'); + $connect = $config->getSystemValue('memories.vod.connect', $bind); + + return "http://{$connect}/{$client}{$path}/{$profile}"; } private function getUpstream(string $client, string $path, string $profile)