From 3e4a458face31407104de2dcb032e5016aa0cc53 Mon Sep 17 00:00:00 2001 From: KodeStar Date: Wed, 14 Feb 2018 20:39:07 +0000 Subject: [PATCH] Change to Pihole to close #81 --- app/SupportedApps/Pihole.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/SupportedApps/Pihole.php b/app/SupportedApps/Pihole.php index 83b132a0..00e76e92 100644 --- a/app/SupportedApps/Pihole.php +++ b/app/SupportedApps/Pihole.php @@ -57,7 +57,9 @@ class Pihole implements Contracts\Applications, Contracts\Livestats { $config = $this->config; $url = $config->url; - $api_url = $url.'admin/api.php'; + $url = rtrim($url, '/'); + + $api_url = $url.'/api.php'; //die( $api_url.' --- '); $client = new Client(['http_errors' => false]);