Skip to content

Commit

Permalink
USe API url with Token (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
elulcao authored Jan 18, 2024
1 parent 3d150a2 commit 8c89cf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/pihole/view.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ func getSummaryView(c http.Client, settings *Settings) string {

var s Status

s, err = getStatus(c, settings.apiUrl)
url := settings.apiUrl + "?status&auth=" + settings.token

s, err = getStatus(c, url)
if err != nil {
return err.Error()
}
Expand Down

0 comments on commit 8c89cf8

Please sign in to comment.