mirror of
https://github.com/Nathanwoodburn/hnschat-web.git
synced 2025-04-13 03:38:16 +10:00
fix: Don't use proxy for curl
This commit is contained in:
parent
be885c3f65
commit
524e7f814f
etc
@ -269,7 +269,7 @@
|
|||||||
function getContents($url) {
|
function getContents($url) {
|
||||||
$curl = curl_init();
|
$curl = curl_init();
|
||||||
curl_setopt($curl, CURLOPT_URL, $url);
|
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_RETURNTRANSFER, TRUE);
|
||||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
||||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
||||||
@ -283,7 +283,7 @@
|
|||||||
function getContentsWithCode($url) {
|
function getContentsWithCode($url) {
|
||||||
$curl = curl_init();
|
$curl = curl_init();
|
||||||
curl_setopt($curl, CURLOPT_URL, $url);
|
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_RETURNTRANSFER, TRUE);
|
||||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
||||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
||||||
@ -301,7 +301,7 @@
|
|||||||
function getContentsWithSpoof($url) {
|
function getContentsWithSpoof($url) {
|
||||||
$curl = curl_init();
|
$curl = curl_init();
|
||||||
curl_setopt($curl, CURLOPT_URL, $url);
|
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_RETURNTRANSFER, TRUE);
|
||||||
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, TRUE);
|
||||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 5);
|
||||||
|
@ -269,7 +269,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="actions">
|
||||||
<div class="link" data-action="viewVideo">Watch</div>
|
<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" data-action="joinVideo">Join</div>
|
||||||
<div class="link destructive" data-action="leaveVideo">Leave</div>
|
<div class="link destructive" data-action="leaveVideo">Leave</div>
|
||||||
<div class="link destructive" data-action="endVideo">End</div>
|
<div class="link destructive" data-action="endVideo">End</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user