Skip to content

Commit

Permalink
Prefer MAC names over IP names when available #100
Browse files Browse the repository at this point in the history
  • Loading branch information
rs committed Apr 12, 2020
1 parent 8ba84b7 commit 9f02abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run.go
Expand Up @@ -472,8 +472,8 @@ func setupClientReporting(p *proxySvc, conf *config.Configs, enableDiscovery boo
// Only send the manufacturer part of the MAC.
ci.Model = "mac:" + hex[:8]
}
if ci.Name == "" {
ci.Name = r.Lookup(hex)
if name := r.Lookup(hex); name != "" {
ci.Name = name
}
}
if ci.ID == "" {
Expand Down

0 comments on commit 9f02abb

Please sign in to comment.