tarfeef101 преди 6 години
родител
ревизия
4b1c2a05e4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      a3/router.py

+ 1 - 1
a3/router.py

@@ -49,7 +49,7 @@ def notify(connection):
             # lookup shortest path to i (the neighbour)
             dlink = graph.lookup(i[0])
             # send to neighbour using dlink
-            sock.sendto(lpacket(rid, connection.src, connection.link, connection.cost, dlink))
+            sock.sendto(lpacket(rid, connection.src, connection.link, connection.cost, dlink).package(), (haddr, hport))
 
 
 class connection: