Skip to content

Commit 709e5d1

Browse files
committed
Improve error message when "ip" and "netstat" are missing and --auto-nets fails to work
1 parent 34f538f commit 709e5d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sshuttle/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def _list_routes(argv, extract_route):
9797
rv = p.wait()
9898
if rv != 0:
9999
log('WARNING: %r returned %d\n' % (argv, rv))
100-
log('WARNING: That prevents --auto-nets from working.\n')
101100

102101
return routes
103102

@@ -108,7 +107,8 @@ def list_routes():
108107
elif which('netstat'):
109108
routes = _list_routes(['netstat', '-rn'], _route_netstat)
110109
else:
111-
log('WARNING: Neither ip nor netstat were found on the server.\n')
110+
log('WARNING: Neither "ip" nor "netstat" were found on the server. '
111+
'--auto-nets feature will not work.\n')
112112
routes = []
113113

114114
for (family, ip, width) in routes:

0 commit comments

Comments
 (0)