[pihole] fix enableBlocking action (#17967)

fixes #17966

Signed-off-by: Stefan Giehl <stefan@matomo.org>
This commit is contained in:
Stefan Giehl 2024-12-24 01:11:11 +01:00 committed by GitHub
parent 86762e0e9b
commit 7e9966989a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}