Update: 2026-07-23 00:16:56
This commit is contained in:
@@ -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() : '';
|
||||
|
||||
|
||||
@@ -139,9 +139,9 @@ class AppLink {
|
||||
case 'Egypt':
|
||||
return 'https://ride-egypt.siromove.com/siro/ride';
|
||||
case 'Jordan':
|
||||
return 'https://rides.intaleq.xyz/intaleq';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
default:
|
||||
return 'https://ride-jordan.siromove.com/siro/ride';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -126,9 +126,9 @@ class AppLink {
|
||||
case 'Egypt':
|
||||
return 'https://ride-egypt.siromove.com/siro';
|
||||
case 'Jordan':
|
||||
return 'https://rides.intaleq.xyz/intaleq';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
default:
|
||||
return 'https://ride-jordan.siromove.com/siro';
|
||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user