fix(mdns): scopedLogger SIGSEGV

This commit is contained in:
Siyuan Miao 2025-04-15 06:50:26 +02:00
parent 4643af011e
commit ea350a63f3
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ func (m *MDNS) start(allowRestart bool) error {
scopeLogger := m.l.With(). scopeLogger := m.l.With().
Interface("local_names", m.localNames). Interface("local_names", m.localNames).
Interface("ipv4", p4.LocalAddr()). Bool("ipv4", m.listenOptions.IPv4).
Interface("ipv6", p6.LocalAddr()). Bool("ipv6", m.listenOptions.IPv6).
Logger() Logger()
newLocalNames := make([]string, len(m.localNames)) newLocalNames := make([]string, len(m.localNames))