Skip to content

Commit 1b3f022

Browse files
committed
Rename service to reduce ambiguity
1 parent b6d93a7 commit 1b3f022

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,14 +1765,14 @@ Preview:
17651765
| allow-insecure | bool | no | false |
17661766
| url | string | yes | |
17671767
| username | string | when service is `adguard` | |
1768-
| password | string | when service is `adguard` or `pihole6` | |
1768+
| password | string | when service is `adguard` or `pihole-v6` | |
17691769
| token | string | when service is `pihole` | |
17701770
| hide-graph | bool | no | false |
17711771
| hide-top-domains | bool | no | false |
17721772
| hour-format | string | no | 12h |
17731773

17741774
##### `service`
1775-
Either `adguard`, or `pihole` (major version 5 and below) or `pihole6` (major version 6 and above).
1775+
Either `adguard`, or `pihole` (major version 5 and below) or `pihole-v6` (major version 6 and above).
17761776

17771777
##### `allow-insecure`
17781778
Whether to allow invalid/self-signed certificates when making the request to the service.

internal/glance/widget-dns-stats.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ func (widget *dnsStatsWidget) initialize() error {
6161

6262
switch widget.Service {
6363
case "adguard":
64-
case "pihole6":
64+
case "pihole-v6":
6565
case "pihole":
6666
default:
67-
return errors.New("service must be one of: adguard, pihole6, pihole")
67+
return errors.New("service must be one of: adguard, pihole-v6, pihole")
6868
}
6969

7070
return nil

0 commit comments

Comments
 (0)