Rename service to reduce ambiguity

This commit is contained in:
Svilen Markov 2025-03-15 19:03:48 +00:00
parent b6d93a7f09
commit 1b3f022b2d
2 changed files with 4 additions and 4 deletions

View File

@ -1765,14 +1765,14 @@ Preview:
| allow-insecure | bool | no | false | | allow-insecure | bool | no | false |
| url | string | yes | | | url | string | yes | |
| username | string | when service is `adguard` | | | username | string | when service is `adguard` | |
| password | string | when service is `adguard` or `pihole6` | | | password | string | when service is `adguard` or `pihole-v6` | |
| token | string | when service is `pihole` | | | token | string | when service is `pihole` | |
| hide-graph | bool | no | false | | hide-graph | bool | no | false |
| hide-top-domains | bool | no | false | | hide-top-domains | bool | no | false |
| hour-format | string | no | 12h | | hour-format | string | no | 12h |
##### `service` ##### `service`
Either `adguard`, or `pihole` (major version 5 and below) or `pihole6` (major version 6 and above). Either `adguard`, or `pihole` (major version 5 and below) or `pihole-v6` (major version 6 and above).
##### `allow-insecure` ##### `allow-insecure`
Whether to allow invalid/self-signed certificates when making the request to the service. Whether to allow invalid/self-signed certificates when making the request to the service.

View File

@ -61,10 +61,10 @@ func (widget *dnsStatsWidget) initialize() error {
switch widget.Service { switch widget.Service {
case "adguard": case "adguard":
case "pihole6": case "pihole-v6":
case "pihole": case "pihole":
default: default:
return errors.New("service must be one of: adguard, pihole6, pihole") return errors.New("service must be one of: adguard, pihole-v6, pihole")
} }
return nil return nil