Browse Source

update to modem script

cecylia 8 years ago
parent
commit
300a97518e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/devicescripts.js

+ 1 - 1
js/devicescripts.js

@@ -17,7 +17,7 @@ var deviceScripts = {
 
     ping: {
 		onPacketReceived: function(device, packet) {
-                    if(packet.hasOwnProperty("proto")){
+                    if(packet.hasOwnProperty("transport") && packet["transport"].hasOwnProperty("proto")){
                         if(packet.transport.proto == "ICMP"){
                             var new_packet = {
                                 network: {