mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 10:27:45 +02:00
Rename service to reduce ambiguity
This commit is contained in:
parent
b6d93a7f09
commit
1b3f022b2d
@ -1765,14 +1765,14 @@ Preview:
|
||||
| allow-insecure | bool | no | false |
|
||||
| url | string | yes | |
|
||||
| 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` | |
|
||||
| hide-graph | bool | no | false |
|
||||
| hide-top-domains | bool | no | false |
|
||||
| hour-format | string | no | 12h |
|
||||
|
||||
##### `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`
|
||||
Whether to allow invalid/self-signed certificates when making the request to the service.
|
||||
|
@ -61,10 +61,10 @@ func (widget *dnsStatsWidget) initialize() error {
|
||||
|
||||
switch widget.Service {
|
||||
case "adguard":
|
||||
case "pihole6":
|
||||
case "pihole-v6":
|
||||
case "pihole":
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user