Browse Source

updating attacks level 1

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

+ 3 - 1
js/devicescripts.js

@@ -167,9 +167,11 @@ var deviceScripts = {
                                     proto: "encryption"
                                     proto: "encryption"
                                 },
                                 },
                                 application: {
                                 application: {
-                                    type: "message"
+                                    type: "message",
+                                    payload: packet.application.payload
                                 }
                                 }
                             }
                             }
+                            sendPacket(device.id, portNum, new_packet);
                             break;
                             break;
                         default:
                         default:
                             break;
                             break;