Skip to content

Commit

Permalink
fix: switching name and target for PiHole hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Tarantini committed Mar 6, 2025
1 parent 1721b10 commit f5fc63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pihole/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ func (r *RecordsResponse) Records(rtype string) *[]Host {
Map[string, Host](r.Config.DNS.Hosts, &result, func(s string) (Host, error) {
split := strings.Split(s, " ")
return Host{
name: split[0],
target: split[1],
name: split[1],
target: split[0],
}, nil
})
}
Expand Down

0 comments on commit f5fc63e

Please sign in to comment.