mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-05-05 08:34:32 +02:00
Just skip empty lines of routes data instead of stopping processing
This commit is contained in:
parent
e173eb6016
commit
ae13316e83
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user