From 524e7f814ff18325c9a09f6221ed485fedb05d20 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn <github@nathan.woodburn.au> Date: Thu, 13 Mar 2025 19:43:28 +1100 Subject: [PATCH] fix: Don't use proxy for curl --- etc/functions.php | 6 +++--- etc/page/chat.php | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/etc/functions.php b/etc/functions.php index a8e74d9..88c296f 100644 --- a/etc/functions.php +++ b/etc/functions.php @@ -269,7 +269,7 @@ function getContents($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); - curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080"); + // curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); @@ -283,7 +283,7 @@ function getContentsWithCode($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); - curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080"); + // curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); @@ -301,7 +301,7 @@ function getContentsWithSpoof($url) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); - curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080"); + // curl_setopt($curl, CURLOPT_PROXY, "127.0.0.1:8080"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5); diff --git a/etc/page/chat.php b/etc/page/chat.php index e9ace2c..22e2dff 100644 --- a/etc/page/chat.php +++ b/etc/page/chat.php @@ -269,7 +269,6 @@ </div> <div class="actions"> <div class="link" data-action="viewVideo">Watch</div> - <!-- <div class="link" data-action="startVideo">Stream</div> --> <div class="link" data-action="joinVideo">Join</div> <div class="link destructive" data-action="leaveVideo">Leave</div> <div class="link destructive" data-action="endVideo">End</div>