Added Timeout (important in case of blacklisting)

This commit is contained in:
int2001
2025-01-31 11:25:30 +00:00
parent 18ba746125
commit 5f78dee165

View File

@@ -70,6 +70,7 @@ class Clublog_model extends CI_Model
// send a file
curl_setopt($request, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt(
$request,
CURLOPT_POSTFIELDS,
@@ -166,6 +167,7 @@ class Clublog_model extends CI_Model
// recieve a file
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$response = curl_exec($request);
$info = curl_getinfo($request);
curl_close($request);
@@ -372,6 +374,7 @@ class Clublog_model extends CI_Model
$request = curl_init('https://clublog.org/realtime.php');
curl_setopt($request, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt(
$request,
CURLOPT_POSTFIELDS,