mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-10-26 07:46:19 +01:00
Add support for Pi-hole v6 API while maintaining v5 compatibility. The component now handles both API versions with proper session-based authentication for v6 and legacy authentication for v5. Includes automated retries, session caching, and proper cleanup. - Add new apiVersion config option (default: 5, accepts: 5,6) - Implement session-based auth with caching for v6 API - Add auto-retry mechanism with configurable attempts - Add periodic status polling for v6 API - Separate v5/v6 API handling logic for better maintenance - Improve error handling and status display - Update documentation with v6 API support details Breaking changes: None. V5 remains default for backward compatibility. V6 mode must be explicitly enabled by setting apiVersion: 6 in config.
38 lines
751 B
PHP
38 lines
751 B
PHP
{
|
|
"domains_being_blocked": 152588,
|
|
"dns_queries_today": 0,
|
|
"ads_blocked_today": 0,
|
|
"percent_blocked": 42,
|
|
"unique_domains": 0,
|
|
"queries_forwarded": 0,
|
|
"queries_cached": 0,
|
|
"clients_ever_seen": 0,
|
|
"unique_clients": 0,
|
|
"dns_queries_all_types": 0,
|
|
"reply_UNKNOWN": 0,
|
|
"reply_NODATA": 0,
|
|
"reply_NXDOMAIN": 0,
|
|
"reply_CNAME": 0,
|
|
"reply_IP": 0,
|
|
"reply_DOMAIN": 0,
|
|
"reply_RRNAME": 0,
|
|
"reply_SERVFAIL": 0,
|
|
"reply_REFUSED": 0,
|
|
"reply_NOTIMP": 0,
|
|
"reply_OTHER": 0,
|
|
"reply_DNSSEC": 0,
|
|
"reply_NONE": 0,
|
|
"reply_BLOB": 0,
|
|
"dns_queries_all_replies": 0,
|
|
"privacy_level": 0,
|
|
"status": "enabled",
|
|
"gravity_last_updated": {
|
|
"file_exists": true,
|
|
"absolute": 1665486627,
|
|
"relative": {
|
|
"days": 0,
|
|
"hours": 0,
|
|
"minutes": 22
|
|
}
|
|
}
|
|
} |