From 8aed7bb9b70cac32573d9be030089c3f6cfd2a72 Mon Sep 17 00:00:00 2001 From: prplwtf Date: Thu, 18 Apr 2024 18:16:57 +0200 Subject: [PATCH] feat `app`: use new api url placeholder inside of telemetryservice :v --- .../Services/TelemetryService/BlueprintTelemetryService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/BlueprintFramework/Services/TelemetryService/BlueprintTelemetryService.php b/app/BlueprintFramework/Services/TelemetryService/BlueprintTelemetryService.php index 7820240..5385e82 100644 --- a/app/BlueprintFramework/Services/TelemetryService/BlueprintTelemetryService.php +++ b/app/BlueprintFramework/Services/TelemetryService/BlueprintTelemetryService.php @@ -3,6 +3,7 @@ namespace Pterodactyl\BlueprintFramework\Services\TelemetryService; use Pterodactyl\Contracts\Repository\SettingsRepositoryInterface; use Pterodactyl\BlueprintFramework\Services\ConfigService\BlueprintConfigService; +use Pterodactyl\BlueprintFramework\Services\PlaceholderService\BlueprintPlaceholderService; class BlueprintTelemetryService { @@ -10,6 +11,7 @@ class BlueprintTelemetryService public function __construct( private SettingsRepositoryInterface $settings, private BlueprintConfigService $ConfigService, + private BlueprintPlaceholderService $PlaceholderService, ) { } @@ -19,7 +21,7 @@ class BlueprintTelemetryService $curl = curl_init(); curl_setopt_array($curl, array( - CURLOPT_URL => 'http://api.blueprint.zip:50000/send/'.$this->settings->get('blueprint::panel:id')."/".$event."/", + CURLOPT_URL => $this->PlaceholderService->api_url().'/send/'.$this->settings->get('blueprint::panel:id')."/".$event."/", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10,