Browse Source

update to ping script

cecylia 8 years ago
parent
commit
dbeedf49f7
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.hashOwnProperty("proto")){
+                    if(packet.hasOwnProperty("proto")){
                         if(packet.transport.proto == "ICMP"){
                             var new_packet = {
                                 network: {