Update: 2026-07-23 00:16:56

This commit is contained in:
Hamza-Ayed
2026-07-23 00:16:56 +03:00
parent ed8a93a6a3
commit 9e065e5a83
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ function isAllowedSocketUrl(string $url): bool {
}
function sendToLocationServer($action, $data) {
$url = getenv('LOCATION_SERVER_URL') ?: 'http://location.intaleq.xyz:2021';
$url = getenv('LOCATION_SERVER_URL') ?: 'http://nginx/loction_server/driver_socket.php';
if (!isAllowedSocketUrl($url)) {
error_log("[SSRF_BLOCKED] Attempted connection to: $url");
return;
@@ -358,7 +358,7 @@ function dispatchRideToDrivers($driversData, $rideId, $payloadTemplate, $startNa
$countDrivers = count($driversData);
error_log("🚀 [DISPATCH_START] RideID: $rideId | Drivers Count: $countDrivers");
$socketUrl = getenv('LOCATION_SERVER_URL') ?: 'http://location.intaleq.xyz:2021';
$socketUrl = getenv('LOCATION_SERVER_URL') ?: 'http://nginx/loction_server/driver_socket.php';
if (!isAllowedSocketUrl($socketUrl)) return;
$internalKey = function_exists('getInternalSocketKey') ? getInternalSocketKey() : '';