From 7e9966989aaa29cea9644684aab0e666cee7ea36 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Tue, 24 Dec 2024 01:11:11 +0100 Subject: [PATCH] [pihole] fix enableBlocking action (#17967) 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 5379999f3c2..4218c651864 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 class JettyAdminService implements AdminService { @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); }