diff --git a/sys/apps/Sniff.lua b/sys/apps/Sniff.lua index c0d299b..6a683eb 100644 --- a/sys/apps/Sniff.lua +++ b/sys/apps/Sniff.lua @@ -351,7 +351,7 @@ Event.on('modem_message', function(_, side, chan, reply, msg, dist) portid = chan, replyid = reply, message = msg, - distance = dist, + distance = dist or -1, }) end end) diff --git a/sys/apps/network/snmp.lua b/sys/apps/network/snmp.lua index ff42b99..ad976a4 100644 --- a/sys/apps/network/snmp.lua +++ b/sys/apps/network/snmp.lua @@ -215,3 +215,5 @@ Event.on('turtle_response', function() sendInfo() end end) + +sendInfo() diff --git a/sys/etc/apps.db b/sys/etc/apps.db index 951778a..edfabba 100644 --- a/sys/etc/apps.db +++ b/sys/etc/apps.db @@ -101,7 +101,7 @@ run = "pain", }, [ "6a381ca189cbddd63737cbaf6e8b593844ce467ba52b1c5e5e05d8f29864385d" ] = { - title = "Sniff", + title = "Sniffer", category = "Apps", icon = "\31\102\128\128\128\128\31\53\149\30\53\31\102\154\30\102\31\53\137\10\30\52\31\102\159\31\52\128\128\30\102\144\31\53\130\30\53\31\102\155\140\10\31\52\151\30\52\31\102\148\30\102\31\52\151\30\52\31\102\148\30\102\128\128\128", run = "Sniff.lua",