video: curl use IP

pull/221/head
Varun Patil 2022-11-09 13:05:05 -08:00
parent c85e8870b7
commit faa0866229
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ class VideoController extends ApiBase
private function getUpstream($path, $profile) private function getUpstream($path, $profile)
{ {
$path = rawurlencode($path); $path = rawurlencode($path);
$ch = curl_init("http://localhost:47788/vod/{$path}/{$profile}"); $ch = curl_init("http://127.0.0.1:47788/vod/{$path}/{$profile}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_HEADER, 0);