From 62a3bc1360f01d65762d1f35c0413a0f028f9d4b Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Sat, 20 Apr 2019 12:34:45 -0400 Subject: [PATCH] sanitize network info a bit --- sys/apps/network/snmp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/apps/network/snmp.lua b/sys/apps/network/snmp.lua index aa25151..ac2e8bf 100644 --- a/sys/apps/network/snmp.lua +++ b/sys/apps/network/snmp.lua @@ -124,6 +124,10 @@ Event.on('modem_message', function(_, _, sport, id, info, distance) network[id].distance = distance network[id].timestamp = os.clock() + if not network[id].label then + network[id].label = 'unknown' + end + if not network[id].active then network[id].active = true os.queueEvent('network_attach', network[id])