Skip to content

Commit

Permalink
Fix to friendly name (chromecast firmware changed this)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnybug committed Nov 27, 2016
1 parent 166322e commit eb5488f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions discovery/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ func (d *Service) listener(ctx context.Context) {

log.Printf("New entry: %#v\n", entry)
client := cast.NewClient(entry.AddrV4, entry.Port)
client.SetName(decodeDnsEntry(name[0]))

info := decodeTxtRecord(entry.Info)
client.SetName(info["fn"])
client.SetInfo(info)

select {
Expand Down

0 comments on commit eb5488f

Please # to comment.