A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.
fix(pi-hole): wrong fetch used in factory (#2527)
Meier Lukas9881577f47fb
diff --git a/packages/integrations/src/pi-hole/pi-hole-integration-factory.ts b/packages/integrations/src/pi-hole/pi-hole-integration-factory.tsindex 7970d7069..71e687927 100644--- a/packages/integrations/src/pi-hole/pi-hole-integration-factory.ts+++ b/packages/integrations/src/pi-hole/pi-hole-integration-factory.ts@@ -1,3 +1,4 @@+import { fetchWithTrustedCertificatesAsync } from "@homarr/certificates/server";import { removeTrailingSlash } from "@homarr/common";import type { IntegrationInput } from "../base/integration";@@ -7,7 +8,7 @@ import { PiHoleIntegrationV6 } from "./v6/pi-hole-integration-v6";export const createPiHoleIntegrationAsync = async (input: IntegrationInput) => {const baseUrl = removeTrailingSlash(input.url);const url = new URL(`${baseUrl}/api/info/version`);- const response = await fetch(url);+ const response = await fetchWithTrustedCertificatesAsync(url);/*** In pi-hole 5 the api was at /admin/api.php, in pi-hole 6 it was moved to /api