cecylia 8 лет назад
Родитель
Сommit
3ce4d07955
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      js/devicescripts.js

+ 3 - 1
js/devicescripts.js

@@ -79,7 +79,9 @@ var deviceScripts = {
             if(!found){
                 //broadcast packet to all ports except where it was received
                 for(var i=0; i<device.ports.length; i++){
-                    sendPacket(device.id, i, packet);
+                    if(i != portNum){
+                        sendPacket(device.id, i, packet);
+                    }
                 }
             }
             //update rules with info from this packet