Skip to content

Commit

Permalink
Fix possible panic (#26)
Browse files Browse the repository at this point in the history
This panic may occur, if mDNS announcement failed and thus SHIP won’t be
usable.
  • Loading branch information
DerAndereAndi committed Jul 16, 2024
2 parents b2606dc + 527bc30 commit 3836e5a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mdns/mdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ func (m *MdnsManager) processMdnsEntry(elements map[string]string, name, host st
}

func (m *MdnsManager) RequestMdnsEntries() {
if m.report == nil {
return
}

entries := m.copyMdnsEntries()
go m.report.ReportMdnsEntries(entries)
}

0 comments on commit 3836e5a

Please sign in to comment.