LocalTunnel Linux Fix
This commit is contained in:
parent
b8e79afe5e
commit
11280a6e66
|
@ -5332,8 +5332,8 @@ if __name__ == "__main__":
|
||||||
#socketio.run(app, host='0.0.0.0', port=5000)
|
#socketio.run(app, host='0.0.0.0', port=5000)
|
||||||
if(vars.host):
|
if(vars.host):
|
||||||
if(args.localtunnel):
|
if(args.localtunnel):
|
||||||
import subprocess
|
import subprocess, shutil
|
||||||
localtunnel = subprocess.Popen(['lt', '-p', '5000', 'http'], shell=True, stdout=subprocess.PIPE)
|
localtunnel = subprocess.Popen([shutil.which('lt'), '-p', '5000', 'http'], stdout=subprocess.PIPE)
|
||||||
attempts = 0
|
attempts = 0
|
||||||
while attempts < 10:
|
while attempts < 10:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue