Fixed issue #12

family should be an integer. fixed parsing routes
This commit is contained in:
Shai Ayal 2015-07-22 22:52:25 +03:00
parent 53d5260f8f
commit 3f2de26f67

View File

@ -554,7 +554,7 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
if auto_nets:
for line in routestr.strip().split('\n'):
(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
# up intercepting the ssh connection!