fix register

This commit is contained in:
2026-06-01 16:54:50 +03:30
parent 497ccd7e14
commit 12c9f45978
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -126,9 +126,9 @@ class Controller extends BaseController
$response = Http::withOptions([
'curl' => [
// اجبار به استفاده از IPv4 و جلوگیری از تاخیر IPv6
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
\CURLOPT_IPRESOLVE => \CURL_IPRESOLVE_V4,
// افزایش سرعت برقراری ارتباط TCP
CURLOPT_TCP_FASTOPEN => 1,
\CURLOPT_TCP_FASTOPEN => 1,
]
])->withoutVerifying()->get($endpoint, [
'FROM' => $credentials['sms']['sender'],
@@ -306,8 +306,8 @@ class ReportController extends Controller
try {
$taban_gohar = Http::withOptions([
'curl' => [
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
CURLOPT_TCP_FASTOPEN => 1,
\CURLOPT_IPRESOLVE => \CURL_IPRESOLVE_V4,
\CURLOPT_TCP_FASTOPEN => 1,
],
])
->withoutVerifying()
+2 -2
View File
@@ -71,8 +71,8 @@ class MontzarService
->acceptJson()
->withOptions([
'curl' => [
CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4,
CURLOPT_TCP_FASTOPEN => 1,
\CURLOPT_IPRESOLVE => \CURL_IPRESOLVE_V4,
\CURLOPT_TCP_FASTOPEN => 1,
],
])
->withToken($token)