From 3f2de26f67a080c754f82af473a6d1b4391ddb10 Mon Sep 17 00:00:00 2001 From: Shai Ayal Date: Wed, 22 Jul 2015 22:52:25 +0300 Subject: [PATCH] Fixed issue #12 family should be an integer. fixed parsing routes --- src/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.py b/src/client.py index 9fde1a7..0fe0e07 100644 --- a/src/client.py +++ b/src/client.py @@ -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!