From faa08662291c74e515439d50503fefa20f0e7c39 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 9 Nov 2022 13:05:05 -0800 Subject: [PATCH] video: curl use IP --- lib/Controller/VideoController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/VideoController.php b/lib/Controller/VideoController.php index b06c97ae..07ada043 100644 --- a/lib/Controller/VideoController.php +++ b/lib/Controller/VideoController.php @@ -125,7 +125,7 @@ class VideoController extends ApiBase private function getUpstream($path, $profile) { $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_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_HEADER, 0);