Commit 3f2de26f authored by Shai Ayal's avatar Shai Ayal

Fixed issue #12

family should be an integer. fixed parsing routes
parent 53d5260f
...@@ -554,7 +554,7 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename, ...@@ -554,7 +554,7 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
if auto_nets: if auto_nets:
for line in routestr.strip().split('\n'): for line in routestr.strip().split('\n'):
(family, ip, width) = line.split(',', 2) (family, ip, width) = line.split(',', 2)
fw.auto_nets.append((family, ip, int(width))) fw.auto_nets.append((int(family), ip, int(width)))
# we definitely want to do this *after* starting ssh, or we might end # we definitely want to do this *after* starting ssh, or we might end
# up intercepting the ssh connection! # up intercepting the ssh connection!
......
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