浏览代码

i hate life:

tarfeef101 6 年之前
父节点
当前提交
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: