Skip to content

Commit

Permalink
Skip * DHCP names #100
Browse files Browse the repository at this point in the history
  • Loading branch information
rs committed Apr 12, 2020
1 parent 84caf16 commit a533720
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions discovery/dhcp.go
Expand Up @@ -91,6 +91,9 @@ func (r *DHCP) readLease(ctx context.Context, file, format string) error {
t := TraceFromCtx(ctx)
if len(entries) > 0 {
for addr, name := range entries {
if name == "*" {
continue
}
r.mu.Lock()
if r.m[addr] != name {
if r.m == nil {
Expand Down

0 comments on commit a533720

Please sign in to comment.