From 90f9be38c56343d3f54e3b1483c7ea1c62a33e79 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Sun, 17 Apr 2022 17:56:54 +0100 Subject: [PATCH] Fix lint errors --- src/admin/admin.go | 3 +-- src/ipv6rwc/ipv6rwc.go | 2 +- src/multicast/multicast.go | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/admin/admin.go b/src/admin/admin.go index ce83139..5616453 100644 --- a/src/admin/admin.go +++ b/src/admin/admin.go @@ -83,8 +83,7 @@ func (a *AdminSocket) Init(c *core.Core, nc *config.NodeConfig, log *log.Logger, } return res, nil }) - a.core.SetAdmin(a) - return nil + return a.core.SetAdmin(a) } func (a *AdminSocket) SetupAdminHandlers(na *AdminSocket) { diff --git a/src/ipv6rwc/ipv6rwc.go b/src/ipv6rwc/ipv6rwc.go index a87dc92..bbaa870 100644 --- a/src/ipv6rwc/ipv6rwc.go +++ b/src/ipv6rwc/ipv6rwc.go @@ -153,7 +153,7 @@ func (k *keyStore) update(key ed25519.PublicKey) *keyInfo { k.resetTimeout(info) k.mutex.Unlock() for _, packet := range packets { - k.core.WriteTo(packet, iwt.Addr(info.key[:])) + _, _ = k.core.WriteTo(packet, iwt.Addr(info.key[:])) } return info } diff --git a/src/multicast/multicast.go b/src/multicast/multicast.go index 882911d..9093e4c 100644 --- a/src/multicast/multicast.go +++ b/src/multicast/multicast.go @@ -300,7 +300,7 @@ func (m *Multicast) _announce() { if li, err := m.core.Listen(u, iface.Name); err == nil { m.log.Debugln("Started multicasting on", iface.Name) // Store the listener so that we can stop it later if needed - linfo = &listenerInfo{listener: li, time: time.Now()} + linfo = &listenerInfo{listener: li, time: time.Now(), port: info.port} m.listeners[iface.Name] = linfo } else { m.log.Warnln("Not multicasting on", iface.Name, "due to error:", err)