Skip to content
Snippets Groups Projects
Commit a1e2056e authored by Guillaume Valadon's avatar Guillaume Valadon
Browse files

Wrong element accessed

parent 9c8f1a7d
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ class Route6: ...@@ -105,7 +105,7 @@ class Route6:
l = filter(lambda x: in6_ptop(x[0]) == dst and x[1] == plen, self.routes) l = filter(lambda x: in6_ptop(x[0]) == dst and x[1] == plen, self.routes)
if gw: if gw:
gw = in6_ptop(gw) gw = in6_ptop(gw)
l = filter(lambda x: in6_ptop(x[0]) == gw, self.routes) l = filter(lambda x: in6_ptop(x[2]) == gw, self.routes)
if len(l) == 0: if len(l) == 0:
warning("No matching route found") warning("No matching route found")
elif len(l) > 1: elif len(l) > 1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment