tarfeef101 6 лет назад
Родитель
Сommit
1c4f625a78
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      a3/router.py

+ 2 - 2
a3/router.py

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