mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[pihole] fix enableBlocking action (#17967)
fixes #17966 Signed-off-by: Stefan Giehl <stefan@matomo.org>
This commit is contained in:
parent
86762e0e9b
commit
7e9966989a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user