mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
inlet/snmp: do not deprecate default-community
We did not handle all cases, notably the case where default-community was not set explicitely by the user. This seems a lot of code for little gain, let's keep things simple.
This commit is contained in:
@@ -24,7 +24,7 @@ type SubnetMap[V any] struct {
|
||||
// Lookup will search for the most specific subnet matching the
|
||||
// provided IP address and return the value associated with it.
|
||||
func (sm *SubnetMap[V]) Lookup(ip net.IP) (V, bool) {
|
||||
if sm.tree == nil {
|
||||
if sm == nil || sm.tree == nil {
|
||||
var value V
|
||||
return value, false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user