summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvieira <vieira@yubo.be>2017-10-19 01:02:58 +0000
committerBrian May <brian@linuxpenguins.xyz>2017-10-19 13:45:34 +1100
commitae13316e836d5f332e92e0e472075554472fc888 (patch)
tree72ad1ce46833d1119714b5e8d6916291b0222f2f
parente173eb6016dbdf0285ed74a65a57aa111e9dcaae (diff)
Just skip empty lines of routes data instead of stopping processing
-rw-r--r--sshuttle/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshuttle/client.py b/sshuttle/client.py
index 20ac10e..60b4ce4 100644
--- a/sshuttle/client.py
+++ b/sshuttle/client.py
@@ -489,7 +489,7 @@ def _main(tcp_listener, udp_listener, fw, ssh_cmd, remotename,
def onroutes(routestr):
if auto_nets:
for line in routestr.strip().split(b'\n'):
- if not line: break
+ if not line: continue
(family, ip, width) = line.split(b',', 2)
family = int(family)
width = int(width)