From 21661129a6652501c56f7d4c8dccc5416d90f66d Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Mon, 23 Dec 2024 23:20:18 +0100 Subject: [PATCH] [pihole] fix enableBlocking action fixes #17966 Signed-off-by: Stefan Giehl --- .../openhab/binding/pihole/internal/rest/JettyAdminService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/JettyAdminService.java b/bundles/org.openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/JettyAdminService.java index 5379999f3c2c1..4218c651864c4 100644 --- a/bundles/org.openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/JettyAdminService.java +++ b/bundles/org.openhab.binding.pihole/src/main/java/org/openhab/binding/pihole/internal/rest/JettyAdminService.java @@ -81,7 +81,7 @@ public void disableBlocking(long seconds) throws PiHoleException { @Override public void enableBlocking() throws PiHoleException { logger.debug("Enabling blocking"); - var url = baseUrl.resolve("/admin/api.php?disable&auth=%s".formatted(token)); + var url = baseUrl.resolve("/admin/api.php?enable&auth=%s".formatted(token)); var request = client.newRequest(url).timeout(TIMEOUT_SECONDS, SECONDS); send(request); }