Just skip empty lines of routes data instead of stopping processing

This commit is contained in:
vieira 2017-10-19 01:02:58 +00:00 committed by Brian May
parent e173eb6016
commit ae13316e83

View File

@ -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)