Commit 32588808 authored by Jondy Zhao's avatar Jondy Zhao

Fix ip value got from window ipv6 route table.

parent 827575ae
......@@ -338,7 +338,7 @@ class TunnelManager(object):
self._last_routing_table = self._get_win32_ipv6_route_table()
for rtline in self._last_routing_table:
iface = rtline[2]
ip = rtline[0][2:].rjust(128, '0')
ip = rtline[0]
if ip[:a] != self._network or ip[a:b] == self._prefix:
continue
prefix_len = rtline[1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment