Commit dcba6847 authored by Avery Pennarun's avatar Avery Pennarun

If netstat -rn returns an error, make that non-fatal.

That only really stops --auto-nets from working; it's mostly harmless
otherwise.  And apparently some locked-down shared hosts don't let you get
the list of routes.
parent ee74110c
...@@ -57,7 +57,8 @@ def _list_routes(): ...@@ -57,7 +57,8 @@ def _list_routes():
routes.append((socket.inet_ntoa(struct.pack('!I', ip)), width)) routes.append((socket.inet_ntoa(struct.pack('!I', ip)), width))
rv = p.wait() rv = p.wait()
if rv != 0: if rv != 0:
raise Fatal('%r returned %d' % (argv, rv)) log('WARNING: %r returned %d\n' % (argv, rv))
log('WARNING: That prevents --auto-nets from working.\n')
return routes return routes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment