Explorar o código

forgot a couple words

tarfeef101 %!s(int64=6) %!d(string=hai) anos
pai
achega
4b1c2a05e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: