mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-21 23:43:18 +01:00
Try Python3.5 by default.
Python 3.0, 3.1, 3.2, and 3.4 not supported however.
This commit is contained in:
parent
43084eb49a
commit
65e81d51c6
2
run
2
run
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
if python3 -V 2>/dev/null; then
|
||||
if python3.5 -V 2>/dev/null; then
|
||||
exec python3 -m "sshuttle" "$@"
|
||||
else
|
||||
exec python -m "sshuttle" "$@"
|
||||
|
@ -107,7 +107,7 @@ def connect(ssh_cmd, rhostport, python, stderr, options):
|
||||
if python:
|
||||
pycmd = "'%s' -c '%s'" % (python, pyscript)
|
||||
else:
|
||||
pycmd = ("P=python2; $P -V 2>/dev/null || P=python; "
|
||||
pycmd = ("P=python3.5; $P -V 2>/dev/null || P=python; "
|
||||
"exec \"$P\" -c '%s'") % pyscript
|
||||
argv = (sshl +
|
||||
portl +
|
||||
|
Loading…
Reference in New Issue
Block a user